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

Function hasOutputs

packages/convert/src/snapshot/split.ts:193–206  ·  view source on GitHub ↗
(file: DeepnoteFile)

Source from the content-addressed store, hash-verified

191 * @returns True if any block has outputs
192 */
193export function hasOutputs(file: DeepnoteFile): boolean {
194 for (const notebook of file.project.notebooks) {
195 for (const block of notebook.blocks) {
196 if (!isExecutableBlockType(block.type)) {
197 continue
198 }
199 const execBlock = block as DeepnoteBlock & { outputs?: unknown[] }
200 if (execBlock.outputs && execBlock.outputs.length > 0) {
201 return true
202 }
203 }
204 }
205 return false
206}
207
208const SPLIT_DEEPNOTE_EXT = '.deepnote'
209

Callers 2

writeDeepnoteFileFunction · 0.90
split.test.tsFile · 0.90

Calls 1

isExecutableBlockTypeFunction · 0.90

Tested by

no test coverage detected