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

Function renderOutput

packages/cli/src/output-renderer.ts:8–16  ·  view source on GitHub ↗
(output: IOutput)

Source from the content-addressed store, hash-verified

6 * Render a Jupyter output to the terminal.
7 */
8export function renderOutput(output: IOutput): void {
9 if (isStream(output)) {
10 renderStreamOutput(output)
11 } else if (isDisplayData(output) || isExecuteResult(output)) {
12 renderDataOutput(output)
13 } else if (isError(output)) {
14 renderErrorOutput(output)
15 }
16}
17
18function isStream(output: IOutput): output is IStream {
19 return output.output_type === 'stream'

Callers 2

Calls 7

isStreamFunction · 0.85
renderStreamOutputFunction · 0.85
isDisplayDataFunction · 0.85
isExecuteResultFunction · 0.85
renderDataOutputFunction · 0.85
isErrorFunction · 0.85
renderErrorOutputFunction · 0.85

Tested by

no test coverage detected