A notebook edit represents edits that should be applied to the contents of a notebook.

Implemented by

Constructors

Properties

newCellMetadata?: {
    [key: string]: any;
}

Optional new metadata for the cells.

Type declaration

  • [key: string]: any
newCells: NotebookCellData[]

New cells being inserted. May be empty.

newNotebookMetadata?: {
    [key: string]: any;
}

Optional new metadata for the notebook.

Type declaration

  • [key: string]: any

Range of the cells being edited. May be empty.

Methods

  • Utility to create an edit that update a cell's metadata.

    Parameters

    • index: number

      The index of the cell to update.

    • newCellMetadata: {
          [key: string]: any;
      }

      The new metadata for the cell.

      • [key: string]: any

    Returns NotebookEdit

  • Utility to create an edit that updates the notebook's metadata.

    Parameters

    • newNotebookMetadata: {
          [key: string]: any;
      }

      The new metadata for the notebook.

      • [key: string]: any

    Returns NotebookEdit