{ } Raw JSON

bundles / jupyter_client 8.10.0 / jupyter_client / multikernelmanager / MultiKernelManager / _async_restart_kernel

function

jupyter_client.multikernelmanager:MultiKernelManager._async_restart_kernel

source: /jupyter_client/multikernelmanager.py:415

Signature

async def _async_restart_kernel(self, kernel_id: str, now: bool = False) → None

Summary

Restart a kernel by its uuid, keeping the same ports.

Parameters

kernel_id : uuid

The id of the kernel to interrupt.

now : bool, optional

If 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