bundles / jupyter_client 8.10.0 / jupyter_client / manager / KernelManager / _async_shutdown_kernel
function
jupyter_client.manager:KernelManager._async_shutdown_kernel
source: /jupyter_client/manager.py:608
Signature
async def _async_shutdown_kernel(self, now: bool = False, restart: bool = False) → NoneSummary
Attempts to stop the kernel process cleanly.
Extended Summary
This attempts to shutdown the kernels cleanly by:
Sending it a shutdown message over the control channel.
If that fails, the kernel is shutdown forcibly by sending it a signal.
Parameters
now: boolShould the kernel be forcible killed now. This skips the first, nice shutdown attempt.
restart: boolWill this kernel be restarted after it is shutdown. When this is True, connection files will not be cleaned up.
Aliases
jupyter_client.AsyncKernelManager.shutdown_kernel