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

Function getOutputStreamType

src/kernels/execution/helpers.ts:298–302  ·  view source on GitHub ↗
(output: NotebookCellOutput)

Source from the content-addressed store, hash-verified

296
297// Output stream can only have stderr or stdout so just check the first output. Undefined if no outputs
298function getOutputStreamType(output: NotebookCellOutput): string | undefined {
299 if (output.items.length > 0) {
300 return output.items[0].mime === CellOutputMimeTypes.stderr ? 'stderr' : 'stdout';
301 }
302}
303
304type JupyterOutput =
305 | nbformat.IUnrecognizedOutput

Callers 1

convertStreamOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected