简体   繁体   English

Jupyter笔记本内核未连接

[英]Jupyter notebook kernel not connecting

I have previously used Jupyter Notebook<\/code> (python 2 and 3) on my mac.我以前在我的 Mac 上使用Jupyter Notebook<\/code> (python 2 和 3)。 After not using it for a while, there seems to be a problem I am unable to fix.一段时间没有使用它,似乎有一个我无法解决的问题。 When starting the notebook from terminal using the command Jupyter notebook<\/code> , and then select a notebook I want to work with, I get the error:当使用命令Jupyter notebook<\/code>从终端启动笔记本,然后选择我要使用的笔记本时,出现错误:

"A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or notebook server configuration."

Running the following version of jupyter and tornado seemed to solve the issue:运行以下版本的 jupyter 和 tornado 似乎解决了这个问题:

Jupyter: 4.4.0 Jupyter:4.4.0

Tornado: 4.5.3龙卷风:4.5.3

I needed to downgrade my version of tornado (which was 5.0.2)我需要降级我的龙卷风版本(5.0.2)

I found a way out, Installing Python on my PC solved it .我找到了出路,在我的 PC 上安装 Python 解决了它 I didn't install python before installing anaconda我在安装anaconda之前没有安装python

安装 Anaconda,启动 Jupyter notebook,然后在 Microsoft Edge 浏览器中打开它。

I was also facing the kernal related issues and all my problems were solved by installing jupyter notebook from anaconda navigator.我也面临着与内核相关的问题,我所有的问题都通过从 anaconda navigator 安装 jupyter notebook 解决了。

So,The best way to handle jupyter notebook related problems is to install jupyter notebook from anaconda navigator for your environment in which you want to run jupyter notebook.因此,处理 jupyter notebook 相关问题的最佳方法是从 anaconda navigator 为您要运行 jupyter notebook 的环境安装 jupyter notebook。 If you will install jupyter notebook from anaconda navigator then you will not face any problem.如果您将从 anaconda navigator 安装 jupyter notebook,那么您将不会遇到任何问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM