Theia API Documentation v1.65.0
    Preparing search index...

    Represents a cell of a notebook, either a code-cell or markup-cell.

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

    interface NotebookCell {
        document: TextDocument;
        executionSummary: undefined | NotebookCellExecutionSummary;
        index: number;
        kind: NotebookCellKind;
        metadata: { readonly [key: string]: any };
        notebook: NotebookDocument;
        outputs: readonly NotebookCellOutput[];
    }
    Index

    Properties

    document: TextDocument

    The text of this cell, represented as text document.

    executionSummary: undefined | NotebookCellExecutionSummary

    The most recent execution summary for this cell.

    index: number

    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.

    The kind of this cell.

    metadata: { readonly [key: string]: any }

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

    The notebook that contains this cell.

    outputs: readonly NotebookCellOutput[]

    The outputs of this cell.