Jupyter: disable restart kernel warning

2019-05-02 10:45发布

I'm using jupyter 4.1.0, and I find myself making frequent use of the "Restart & Run All" feature. Every time I use that button it displays this warning:

enter image description here

Is there a way to disable that warning?

1条回答
Juvenile、少年°
2楼-- · 2019-05-02 10:59

You can add a cell in your notebook and using the following statements:

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

And the kernel will restart immediately.

查看更多
登录 后发表回答