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:
Is there any way to disable this warning?
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.