text

fun text(value: String, mime: String = definedExternally): NotebookCellOutputItem(source)

Factory function to create a NotebookCellOutputItem from a string.

Note that an UTF-8 encoder is used to create bytes for the string.

Parameters

value

A string.

mime

Optional MIME type, defaults to text/plain.