(file: DeepnoteFile)
| 191 | * @returns True if any block has outputs |
| 192 | */ |
| 193 | export 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 | |
| 208 | const SPLIT_DEEPNOTE_EXT = '.deepnote' |
| 209 |
no test coverage detected