bundles / jupyter_client 8.10.0 / jupyter_client / provisioning / provisioner_base / KernelProvisionerBase / terminate
function
jupyter_client.provisioning.provisioner_base:KernelProvisionerBase.terminate
Signature
async def terminate(self, restart: bool = False) → NoneSummary
Terminates the kernel process.
Extended Summary
This is typically accomplished via a SIGTERM signal, which can be caught, allowing the kernel provisioner to perform possible cleanup of resources. This method is called indirectly from KernelManager.finish_shutdown() during a kernel's graceful termination.
restart is True if this operation precedes a start launch_kernel request.
Aliases
jupyter_client.KernelProvisionerBase.terminate