Jupyter 笔记本内核死了Mac

问题描述

昨天我在检查语句的输出时我的内核死了,它仍然处于相同的状态。当它发生时,我已经编码了至少 4 个小时,而且我没有下载任何应用程序或更改系统内部可能干扰它的任何内容。我已经使用 Jupyter Notebook 一年了,这是第一次发生这种情况。

尝试重启内核时出现以下提示: 内核已死,自动重启失败。内核可能无法重新启动。如果您无法重新启动内核,您仍然可以保存笔记本,但在重新打开笔记本之前,运行代码将不再起作用。

当我尝试运行时: 内核似乎已经死了。它会自动重启。

我做过的事情:

  • 重新启动、重新连接、关闭内核
  • 管理员身份打开
  • 卸载它,删除所有与anaconda相关的文件并重新安装(清理缓存、备份并使用Clean My Mac X清除所有文件
  • 通过将其添加到我的管理员帐户(Mac 中的应用程序)下的特定文件来安装
  • 关闭并重新启动计算机
  • 运行 conda update --all
  • 卸载 ipykernel、ipython、jupyter_client、jupyter_core、traitlets、ipython_genutils,然后重新安装。
  • 运行 conda update ipykernel

我还运行了以下内容

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 

到目前为止没有任何效果

我的终端显示如下:

The default interactive shell is Now zsh.
To update your account to use zsh,please run `chsh -s /bin/zsh`.
For more details,please visit https://support.apple.com/kb/HT208050.
/Users/martaramos/Applications/anaconda3/bin/jupyter_mac.command ; exit;
(base) Martaaaa:~ martaramos$ /Users/martaramos/Applications/anaconda3/bin/jupyter_mac.command ; exit;
[I 11:25:26.214 NotebookApp] JupyterLab extension loaded from /Users/martaramos/Applications/anaconda3/lib/python3.8/site-packages/jupyterlab
[I 11:25:26.215 NotebookApp] JupyterLab application directory is /Users/martaramos/Applications/anaconda3/share/jupyter/lab
[I 11:25:26.219 NotebookApp] Serving notebooks from local directory: /Users/martaramos
[I 11:25:26.219 NotebookApp] Jupyter Notebook 6.1.4 is running at:
[I 11:25:26.219 NotebookApp] http://localhost:8888/?token=7b0415ea1961f656dd70d66b802bb0bc60eb0db701b7adbb
[I 11:25:26.219 NotebookApp]  or http://127.0.0.1:8888/?token=7b0415ea1961f656dd70d66b802bb0bc60eb0db701b7adbb
[I 11:25:26.219 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 11:25:26.227 NotebookApp] 
    
    To access the notebook,open this file in a browser:
        file:///Users/martaramos/Library/Jupyter/runtime/nbserver-4059-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=7b0415ea1961f656dd70d66b802bb0bc60eb0db701b7adbb
     or http://127.0.0.1:8888/?token=7b0415ea1961f656dd70d66b802bb0bc60eb0db701b7adbb
[I 11:25:36.295 NotebookApp] Kernel started: a95fd5dc-468f-4a47-8b16-cb41f585cde1,name: python3
[I 11:25:42.294 NotebookApp] KernelRestarter: restarting kernel (1/5),keep random ports
kernel a95fd5dc-468f-4a47-8b16-cb41f585cde1 restarted
[I 11:26:00.302 NotebookApp] KernelRestarter: restarting kernel (1/5),keep random ports
kernel a95fd5dc-468f-4a47-8b16-cb41f585cde1 restarted
[I 11:27:37.852 NotebookApp] Saving file at /Desktop/Python/Section 6.ipynb

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...