• Run specified cells.

    Parameters

    • notebook: Notebook

      The target notebook widget.

    • cells: readonly Cell<ICellModel>[]

      The cells to run.

    • 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 preserved. The mode will be changed to command. An execution error will prevent the remaining code cells from executing. All markdown cells will be rendered.

    Returns Promise<boolean>