{ } Raw JSON

bundles / jupyter_client 8.10.0 / jupyter_client / client / KernelClient / shutdown

function

jupyter_client.client:KernelClient.shutdown

source: /jupyter_client/client.py:832

Signature

def shutdown(self, restart: bool = False) → str

Summary

Request an immediate kernel shutdown on the control channel.

Extended Summary

Upon receipt of the (empty) reply, client code can safely assume that the kernel has shut down and it's safe to forcefully terminate it if it's still alive.

The kernel will send the reply via a function registered with Python's atexit module, ensuring it's truly done as the kernel is done with all normal operation.

Returns

: The msg_id of the message sent

Aliases

  • jupyter_client.KernelClient.shutdown