MCPcopy Index your code
hub / github.com/deepnote/deepnote / getNotebooksForExecutionScope

Function getNotebooksForExecutionScope

packages/cli/src/commands/run.ts:401–414  ·  view source on GitHub ↗
(
  file: DeepnoteFile,
  options: { notebook?: string }
)

Source from the content-addressed store, hash-verified

399}
400
401function getNotebooksForExecutionScope(
402 file: DeepnoteFile,
403 options: { notebook?: string }
404): DeepnoteFile['project']['notebooks'] {
405 const notebooks = options.notebook
406 ? file.project.notebooks.filter(notebook => notebook.name === options.notebook)
407 : file.project.notebooks
408
409 if (options.notebook && notebooks.length === 0) {
410 throw new Error(`Notebook "${options.notebook}" not found in project`)
411 }
412
413 return notebooks
414}
415
416function selectScopeNotebooks(
417 notebooks: DeepnoteFile['project']['notebooks'],

Callers 2

collectExecutableBlocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected