无法在VS Code上启动Jupyter Notebook [英] Unable to start Jupyter notebook on VS Code

查看:133
本文介绍了无法在VS Code上启动Jupyter Notebook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(在64位Windows10上使用最新的miniconda + VS Code :)全新重新安装VS Code后,我无法再从其中启动jupyter Notebook.当我第一次尝试创建新的jupyter文件时,Python扩展程序在我的虚拟环境"da38"中安装了 ipykernel .(我的主要工作环境).然后,它停留在 Connecting IPython内核:连接到内核的时间异常长,并显示错误消息 Unable to start session for kernel Python 3.8.5 64-bit('da38':conda)(下面粘贴的图片).我还删除并重新创建了da38环境,以防万一.以前多次使用jupyter一直没有问题,直到今天安装了此新的VS Code,并且相同的设置正在我的另一台计算机上工作.任何帮助表示赞赏.谢谢!

(Using latest miniconda + VS Code on 64-bit Windows10:) After clean reinstalling VS Code, I can no longer launch jupyter notebook from within it. When I tried to create a new jupyter file for the first time, the Python extension installed ipykernel in my virtual environment "da38" (my main working environment). Then it stays on Connecting to IPython kernel: Connecting to kernel for an unusually long time, and stops with the error message Unable to start session for kernel Python 3.8.5 64-bit ('da38':conda) (images pasted below). I also removed and re-created da38 environment just in case. Used jupyter many times before with no issues until this new VS Code install today, and an identical setup is working on my other computer. Any help is appreciated. Thanks!

推荐答案

此问题也出现在我的计算机上.解决方案是恢复依赖包" traitlets "的版本号.ipython内核的版本为 4.3.3 .

This issue also occurs on my computer. The solution is to restore the version number of a dependency package "traitlets" of ipython kernel to 4.3.3.

您可以尝试使用" conda列表"查看当前conda环境中模块特征的版本.如果显示的是5.0版,建议您使用4.3.3版.

You could try to use "conda list" to view the version of the module traitlets in the current conda environment. If it shows version 5.0, it is recommended that you use version 4.3.3.

参考:无法启动内核Python的会话

这篇关于无法在VS Code上启动Jupyter Notebook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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