Jupyter: disable restart kernel warning

£可爱£侵袭症+ 提交于 2019-12-22 04:07:57

问题


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:

Is there a way to disable that warning?


回答1:


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.



来源:https://stackoverflow.com/questions/37472274/jupyter-disable-restart-kernel-warning

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!