• Run all of the cells before the currently active cell (exclusive).

    Parameters

    • notebook: Notebook

      The target notebook widget.

    • Optional sessionContext: ISessionContext

      The client session object.

    • Optional sessionDialogs: ISessionContextDialogs

      The session dialogs.

    • Optional translator: ITranslator

      The application translator.

      Notes

      The existing selection will be cleared. An execution error will prevent the remaining code cells from executing. All markdown cells will be rendered. The currently active cell will remain selected.

    Returns Promise<boolean>