NotebookCell

interface NotebookCell(source)

Represents a cell of a notebook}, either a {@link NotebookCellKind.Code code-cell or markup-cell.

NotebookCell instances are immutable and are kept in sync for as long as they are part of their notebook.

Online Documentation

Properties

Link copied to clipboard
abstract val document: TextDocument

The text of this cell, represented as text document.

Link copied to clipboard

The most recent execution summary for this cell.

Link copied to clipboard
abstract val index: Int

The index of this cell in its containing notebook. The index is updated when a cell is moved within its notebook. The index is -1 when the cell has been removed from its notebook.

Link copied to clipboard
abstract val kind: NotebookCellKind

The kind of this cell.

Link copied to clipboard
abstract val metadata: ReadonlyRecord<JsString, *>

The metadata of this cell. Can be anything but must be JSON-stringifyable.

Link copied to clipboard

The notebook that contains this cell.

Link copied to clipboard

The outputs of this cell.