Jupyter:禁用重启内核警告 [英] Jupyter: disable restart kernel warning

查看:661
本文介绍了Jupyter:禁用重启内核警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用jupyter 4.1.0,我发现自己经常使用Restart& Run All功能。每次我使用该按钮时都会显示此警告:

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?

推荐答案

您可以在笔记本中添加一个单元格并使用以下语句:

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>")

内核将立即重启。

这篇关于Jupyter:禁用重启内核警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆