Jupyter kernels can set interrupt_mode to message in the kernelspec, which will result in interrupt_request messages being sent when the user chooses to interrupt the Jupyter kernel.
This functionality should be exposed for kernels built on top of jupyter-core.
As documented here: https://jupyter-client.readthedocs.io/en/stable/messaging.html#kernel-interrupt
Jupyter kernels can set
interrupt_mode
tomessage
in the kernelspec, which will result ininterrupt_request
messages being sent when the user chooses to interrupt the Jupyter kernel.This functionality should be exposed for kernels built on top of jupyter-core.