{ } Raw JSON

bundles / jupyter_client latest / jupyter_client / provisioning / provisioner_base / KernelProvisionerBase / terminate

function

jupyter_client.provisioning.provisioner_base:KernelProvisionerBase.terminate

source: /jupyter_client/provisioning/provisioner_base.py:90

Signature

async def terminate(self, restart: bool = False) → None

Summary

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