Interface INotebookHistory

The definition of a console history manager object.

interface INotebookHistory {
    editor: null | CodeEditor.IEditor;
    isDisposed: boolean;
    kernelSession: string;
    placeholder: string;
    back(activeCell: Cell<ICellModel>): Promise<undefined | string>;
    dispose(): void;
    forward(activeCell: Cell<ICellModel>): Promise<undefined | string>;
    reset(): void;
    updateEditor(
        activeCell: Cell<ICellModel>,
        content: undefined | string,
    ): void;
}

Hierarchy

Implemented by

Properties

editor: null | CodeEditor.IEditor

The current editor used by the history widget.

isDisposed: boolean

Test whether the object has been disposed.

This property is always safe to access.

kernelSession: string

The session number of the current kernel session

placeholder: string

The placeholder text that a history session began with.

Methods

  • Dispose of the resources held by the object.

    If the object's dispose method is called more than once, all calls made after the first will be a no-op.

    It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.

    Returns void

  • Get the next item in the console history.

    Parameters

    • activeCell: Cell<ICellModel>

      The currently selected Cell in the notebook.

    • content: undefined | string

      the result from back or forward

    Returns void