bundles / jupyter_client 8.10.0 / jupyter_client / multikernelmanager / MultiKernelManager / _async_restart_kernel
function
jupyter_client.multikernelmanager:MultiKernelManager._async_restart_kernel
Signature
async def _async_restart_kernel(self, kernel_id: str, now: bool = False) → NoneSummary
Restart a kernel by its uuid, keeping the same ports.
Parameters
kernel_id: uuidThe id of the kernel to interrupt.
now: bool, optionalIf True, the kernel is forcefully restarted immediately, without having a chance to do any cleanup action. Otherwise the kernel is given 1s to clean up before a forceful restart is issued.
In all cases the kernel is restarted, the only difference is whether it is given a chance to perform a clean shutdown or not.
Aliases
jupyter_client.AsyncMultiKernelManager.restart_kernel