jupyter 服务器:未启动,vs 代码中没有内核 [英] jupyter server : not started, no kernel in vs code
问题描述
我正在尝试使用来自 vs 代码的 jupyter 笔记本并安装了 jupyter 笔记本扩展,并且我正在使用(基础)conda 环境来执行.虽然这发生了
i am trying to use jupyter notebooks from vs code and installed jupyter notebook extension and i am using (base)conda environment for execution. while this happened
Error: Jupyter cannot be started. Error attempting to locate jupyter:
at A.startServer (c:UsersDELL.vscodeextensionsms-python.python-2020.2.63990outclientextension.js:1:784356)
at async A.ensureServerAndNotebookImpl (c:UsersDELL.vscodeextensionsms-python.python-2020.2.63990outclientextension.js:1:783811)
at async A.ensureServerAndNotebook (c:UsersDELL.vscodeextensionsms-python.python-2020.2.63990outclientextension.js:1:783612)
at async A.submitCode (c:UsersDELL.vscodeextensionsms-python.python-2020.2.63990outclientextension.js:1:780564)
at async A.reexecuteCell (c:UsersDELL.vscodeextensionsms-python.python-2020.2.63990outclientextension.js:75:879318)
如何解决这个问题?
推荐答案
当我安装 Visual Studio Code 并尝试在我的新 Ubuntu 18.04 上从 jupyter notebook 运行一些 Python 代码时,我遇到了完全相同的问题.
I had exactly the same problem when I installed Visual Studio Code and tried to run some Python code from a jupyter notebook on my fresh Ubuntu 18.04.
我是如何解决的:
1) 按Command+Shift+P
打开一个新的命令面板
1) Press Command+Shift+P
to open a new command pallete
2) 输入 >Python:选择 Intepreter 启动 jupyter notebook 服务器
3) 再次打开笔记本
而且效果很好.希望它对你有用.
And it worked fine. Hope it works for you.
这篇关于jupyter 服务器:未启动,vs 代码中没有内核的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!