Jupyter: disable kernel restart warning

I use jupyter 4.1.0 and I often use the "Restart and Run Everything" feature. Every time I use this button, it displays this warning:

enter image description here

Is there any way to disable this warning?

+4
python ipython jupyter-notebook jupyter
source share
1 answer

You can add a cell to your notebook and use the following instructions:

from IPython.core.display import HTML HTML("<script>Jupyter.notebook.kernel.restart()</script>") 

And the kernel will restart immediately.

+3
source share

All Articles