(
file: DeepnoteFile,
options: { notebook?: string }
)
| 399 | } |
| 400 | |
| 401 | function 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 | |
| 416 | function selectScopeNotebooks( |
| 417 | notebooks: DeepnoteFile['project']['notebooks'], |
no outgoing calls
no test coverage detected