The data of this output item. Must always be an array of unsigned 8-bit integers.
The mime type which determines how the data
-property
is interpreted.
Notebooks have built-in support for certain mime-types, extensions can add support for new types and override existing types.
Static
Private
#encoderStatic
errorFactory function to create a NotebookCellOutputItem
that uses
uses the application/vnd.code.notebook.error
mime type.
An error object.
A new output item object.
Static
jsonFactory function to create a NotebookCellOutputItem
from
a JSON object.
Note that this function is not expecting "stringified JSON" but an object that can be stringified. This function will throw an error when the passed value cannot be JSON-stringified.
A JSON-stringifyable value.
Optional
mime: stringOptional MIME type, defaults to application/json
A new output item object.
Static
stderrFactory function to create a NotebookCellOutputItem
that uses
uses the application/vnd.code.notebook.stderr
mime type.
A string.
A new output item object.
Static
stdoutFactory function to create a NotebookCellOutputItem
that uses
uses the application/vnd.code.notebook.stdout
mime type.
A string.
A new output item object.
Static
textFactory function to create a NotebookCellOutputItem
from a string.
Note that an UTF-8 encoder is used to create bytes for the string.
A string.
Optional
mime: stringOptional MIME type, defaults to text/plain
.
A new output item object.
One representation of a notebook output, defined by MIME type and data.