Execution options for notebook cell executor.

interface IRunCellOptions {
    cell: Cell<ICellModel>;
    notebook: INotebookModel;
    notebookConfig: INotebookConfig;
    onCellExecuted: (
        args: {
            cell: Cell<ICellModel>;
            error?: null | KernelError;
            success: boolean;
        },
    ) => void;
    onCellExecutionScheduled: (args: { cell: Cell<ICellModel> }) => void;
    sessionContext?: ISessionContext;
    sessionDialogs?: ISessionContextDialogs;
    translator?: ITranslator;
}

Properties

Cell to execute

notebook: INotebookModel

Notebook to which the cell belongs

notebookConfig: INotebookConfig

Notebook widget configuration

onCellExecuted: (
    args: {
        cell: Cell<ICellModel>;
        error?: null | KernelError;
        success: boolean;
    },
) => void

A callback to notify a cell completed execution.

onCellExecutionScheduled: (args: { cell: Cell<ICellModel> }) => void

A callback to notify that a cell execution is scheduled.

sessionContext?: ISessionContext

Document session context

sessionDialogs?: ISessionContextDialogs

Session dialogs

translator?: ITranslator

Application translator