MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / hasErrorOutput

Function hasErrorOutput

src/kernels/execution/helpers.ts:640–646  ·  view source on GitHub ↗
(outputs: readonly NotebookCellOutput[])

Source from the content-addressed store, hash-verified

638 return cell.outputs.map(getTextOutputValue).join('');
639}
640export function hasErrorOutput(outputs: readonly NotebookCellOutput[]) {
641 const errorOutput = outputs.find(
642 (op) => op.items.length && !op.items.some((opit) => opit.mime !== CellOutputMimeTypes.error)
643 );
644
645 return !!errorOutput;
646}
647
648// eslint-disable-next-line complexity
649export async function updateNotebookMetadataWithSelectedKernel(

Calls

no outgoing calls

Tested by

no test coverage detected