jupyterlab-emrys
Version:
A computational environment for Jupyter. Powered by Emrys
15 lines (14 loc) • 439 B
TypeScript
import { IKernel } from 'jupyter-js-services';
/**
* Restart a kernel after presenting a dialog.
*
* @param kernel - The kernel to restart.
*
* @param host - The optional host element for the dialog.
*
* @returns A promise that resolves to `true` the user elects to restart.
*
* #### Notes
* This is a no-op if there is no kernel.
*/
export declare function restartKernel(kernel: IKernel, host?: HTMLElement): Promise<boolean>;