重复“内核死机,重新启动”

2024-05-23 20:34:38 发布

您现在位置:Python中文网/ 问答频道 /正文

当我试图逃跑时

$ jupyter qtconsole

控制台出现,显示消息

Kernel died, restarting
________________________
Kernel died, restarting
________________________
Kernel died, restarting
________________________
Kernel died, restarting
________________________
Kernel died, restarting
________________________

继续。

尝试$ jupyter qtconsole --debug没有打印任何其他内容,也没有添加

c.Application.log_level = 0
c.Session.debug = True

变成$USERHOME/.jupyter/jupyter_qtconsole_config.py

另外,在$USERHOME/.ipython/profile_default/log/和其他目录中也没有发现任何内容。

自从上次启动以来,我的配置没有任何变化。

我怎么能至少找出内核出了什么问题?当然,Jupyter中有一些选项可以获取内核的STDERR输出,看看是什么异常使它不安?


Tags: debuglogtrue消息内容applicationsessionjupyter
3条回答

我尝试了几种解决方法,最后找到了一种真正有效的方法。 您只需在防病毒和/或防火墙中添加一个例外即可。 我现在使用Avast,所以添加了一个关于我安装Anaconda的文件夹和虚拟环境的异常,解决了这个问题,现在Spyder发挥了魅力。

运行这个-

conda remove ipykernel ipython jupyter_client jupyter_core traitlets ipython_genutils

conda clean -tipsy

conda install ipykernel ipython jupyter_client jupyter_core traitlets ipython_genutils

jupyter notebook

检查日志。我也有同样的问题,我的日志显示no module named ipykernel_launcher。所以,我只是pip install ipykernel来解决这个问题。

相关问题 更多 >