An interface for a session context dialog provider.

interface IDialogs {
    restart(session): Promise<boolean>;
    selectKernel(session): Promise<void>;
}

Hierarchy (view full)

Implemented by

Methods

  • Restart the session context.

    Parameters

    Returns Promise<boolean>

    A promise that resolves with whether the kernel has restarted.

    Notes

    If there is a running kernel, present a dialog. If there is no kernel, we start a kernel with the last run kernel name and resolves with true. If no kernel has been started, this is a no-op, and resolves with false.