Interface ICodeCell

A code cell.

interface ICodeCell {
    cell_type: "code";
    execution_count: ExecutionCount;
    id?: string;
    metadata: Partial<ICodeCellMetadata>;
    outputs: IOutput[];
    source: MultilineString;
}

Hierarchy (view full)

Properties

cell_type: "code"

String identifying the type of cell.

execution_count: ExecutionCount

The code cell's prompt number. Will be null if the cell has not been run.

id?: string

A string field representing the identifier of this particular cell.

Notebook format 4.4 requires no id field, but format 4.5 requires an id field. We need to handle both cases, so we make id optional here.

Cell-level metadata.

outputs: IOutput[]

Execution, display, or stream outputs.

Contents of the cell, represented as an array of lines.