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

Function getTextOutputValues

src/kernels/execution/helpers.ts:637–639  ·  view source on GitHub ↗
(cell: NotebookCell)

Source from the content-addressed store, hash-verified

635 return items.map((item) => convertOutputMimeToJupyterOutput(item.mime, item.data as Uint8Array)).join('');
636}
637export function getTextOutputValues(cell: NotebookCell): string {
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)

Callers 1

Calls 2

joinMethod · 0.80
mapMethod · 0.80

Tested by

no test coverage detected