jupyter / jupyter_console

Jupyter Terminal Console

Home Page:http://jupyter-console.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Command to restart kernel

bluss opened this issue · comments

commented

When using a python kernel it would be useful to be able to restart the kernel (like one can do in jupyterlab, for example). Would it be possible to add a command for this, or are there technical limitations?

This differs from %reset in that all memory is properly released and no state is remembered (either in pure python modules or foreign libraries they use).

I have read #211 and it does not offer any real way to do this.

There is an option (in --help-all) called --KernelManager.autorestart= with default True, but if I just SIGTERM the kernel, it is not restarted automatically.