A basic kernel monitor with autorestarting.
This watches a kernel’s state using KernelManager.is_alive and auto restarts the kernel if it dies.
It is an incomplete base class, and must be subclassed.
Bases: IPython.config.configurable.LoggingConfigurable
Monitor and autorestart a kernel.
register a callback to fire on a particular event
Possible values for event:
‘restart’ (default): kernel has died, and will be restarted. ‘dead’: restart has failed, kernel will be left dead.
unregister a callback to fire on a particular event
Possible values for event:
‘restart’ (default): kernel has died, and will be restarted. ‘dead’: restart has failed, kernel will be left dead.
Start the polling of the kernel.
Stop the kernel polling.