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

    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

      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>