Notebook cell output represents a result of executing a cell. It is a container type for multiple {@link NotebookCellOutputItem output items} where contained items represent the same result but use different MIME types.
Notebook cell output represents a result of executing a cell. It is a container type for multiple {@link NotebookCellOutputItem output items} where contained items represent the same result but use different MIME types.
(items notebook-cell-output)
The output items of this output. Each item must represent the same result. Note that repeated MIME types per output is invalid and that the editor will just pick one of them.
new vscode.NotebookCellOutput([
vscode.NotebookCellOutputItem.text('Hello', 'text/plain'),
vscode.NotebookCellOutputItem.text('<i>Hello</i>', 'text/html'),
vscode.NotebookCellOutputItem.text('_Hello_', 'text/markdown'),
vscode.NotebookCellOutputItem.text('Hey', 'text/plain'), // INVALID: repeated type, editor will pick just one
])
The output items of this output. Each item must represent the same result. _Note_ that repeated MIME types per output is invalid and that the editor will just pick one of them. ```ts new vscode.NotebookCellOutput([ vscode.NotebookCellOutputItem.text('Hello', 'text/plain'), vscode.NotebookCellOutputItem.text('<i>Hello</i>', 'text/html'), vscode.NotebookCellOutputItem.text('_Hello_', 'text/markdown'), vscode.NotebookCellOutputItem.text('Hey', 'text/plain'), // INVALID: repeated type, editor will pick just one ]) ```
(metadata notebook-cell-output)
Arbitrary metadata for this cell output. Can be anything but must be JSON-stringifyable.
Arbitrary metadata for this cell output. Can be anything but must be JSON-stringifyable.
(set-items! notebook-cell-output value)
The output items of this output. Each item must represent the same result. Note that repeated MIME types per output is invalid and that the editor will just pick one of them.
new vscode.NotebookCellOutput([
vscode.NotebookCellOutputItem.text('Hello', 'text/plain'),
vscode.NotebookCellOutputItem.text('<i>Hello</i>', 'text/html'),
vscode.NotebookCellOutputItem.text('_Hello_', 'text/markdown'),
vscode.NotebookCellOutputItem.text('Hey', 'text/plain'), // INVALID: repeated type, editor will pick just one
])
The output items of this output. Each item must represent the same result. _Note_ that repeated MIME types per output is invalid and that the editor will just pick one of them. ```ts new vscode.NotebookCellOutput([ vscode.NotebookCellOutputItem.text('Hello', 'text/plain'), vscode.NotebookCellOutputItem.text('<i>Hello</i>', 'text/html'), vscode.NotebookCellOutputItem.text('_Hello_', 'text/markdown'), vscode.NotebookCellOutputItem.text('Hey', 'text/plain'), // INVALID: repeated type, editor will pick just one ]) ```
(set-metadata! notebook-cell-output value)
Arbitrary metadata for this cell output. Can be anything but must be JSON-stringifyable.
Arbitrary metadata for this cell output. Can be anything but must be JSON-stringifyable.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close