首先介绍一下,我是在上一篇文章的基础上面来进行解决的,由于我配置的新的conda 环境中jupyter采用nb_conda来进行配置,在我的base环境中jupyter是可以正常运行,但是可能由于两个环境中python版本不同,两者之间可能存在一些差异。base环境中的python为3.9版本,新环境的版本为3.6版本,所以出现的一些不同。
首先无法连接内核,其代码前面会一直出现In(*),并且会报错为
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.
解决方法,使用pip list可以看到其tornado 的版本为6.1版本,其无法适配python36环境,解决方法
pip uninstall tornado
pip install tornado==4.5.3 -i https://pypi.tuna.tsinghua.edu.cn/simple
然后从新启动jupyter notebook 完美解决。