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

Function assertExecutableBlockExists

packages/cli/src/commands/run.ts:428–441  ·  view source on GitHub ↗
(blockId: string, notebooks: DeepnoteFile['project']['notebooks'])

Source from the content-addressed store, hash-verified

426}
427
428function assertExecutableBlockExists(blockId: string, notebooks: DeepnoteFile['project']['notebooks']): void {
429 for (const notebook of notebooks) {
430 const block = notebook.blocks.find(b => b.id === blockId)
431 if (!block) {
432 continue
433 }
434 if (!executableBlockTypeSet.has(block.type)) {
435 throw new Error(`Block "${blockId}" is not executable (type: ${block.type}).`)
436 }
437 return
438 }
439
440 throw new Error(`Block "${blockId}" not found in project`)
441}
442
443async function resolveUpstreamExecutionBlockIds(
444 file: DeepnoteFile,

Callers 1

collectExecutableBlocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected