• Run the selected cell(s) and insert a new code cell.

    Parameters

    • notebook: Notebook

      The target notebook widget.

    • OptionalsessionContext: ISessionContext

      The client session object.

    • OptionalsessionDialogs: ISessionContextDialogs

      The session dialogs.

    • Optionaltranslator: ITranslator

      The application translator.

      An execution error will prevent the remaining code cells from executing. All markdown cells will be rendered. The widget mode will be set to 'edit' after running. The existing selection will be cleared. The cell insert can be undone. The new cell will be scrolled into view.

    Returns Promise<boolean>