jupyter服务器:未启动,vs代码中没有内核 [英] jupyter server : not started, no kernel in vs code

查看:1154
本文介绍了jupyter服务器:未启动,vs代码中没有内核的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从vs代码使用jupyter笔记本,并安装了jupyter笔记本扩展,并且我正在使用(base)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

错误:无法启动Jupyter.尝试找到jupyter时出错: 在A.startServer(c:\ Users \ DELL.vscode \ extensions \ ms-python.python-2020.2.63990 \ out \ client \ extension.js:1:784356) 在异步A.ensureServerAndNotebookImpl(c:\ Users \ DELL.vscode \ extensions \ ms-python.python-2020.2.63990 \ out \ client \ extension.js:1:783811) 在异步A.ensureServerAndNotebook(c:\ Users \ DELL.vscode \ extensions \ ms-python.python-2020.2.63990 \ out \ client \ extension.js:1:783612) 在异步A.submitCode(c:\ Users \ DELL.vscode \ extensions \ ms-python.python-2020.2.63990 \ out \ client \ extension.js:1:780564) 在异步A.reexecuteCell(c:\ Users \ DELL.vscode \ extensions \ ms-python.python-2020.2.63990 \ out \ client \ extension.js:75:879318)

Error: Jupyter cannot be started. Error attempting to locate jupyter: at A.startServer (c:\Users\DELL.vscode\extensions\ms-python.python-2020.2.63990\out\client\extension.js:1:784356) at async A.ensureServerAndNotebookImpl (c:\Users\DELL.vscode\extensions\ms-python.python-2020.2.63990\out\client\extension.js:1:783811) at async A.ensureServerAndNotebook (c:\Users\DELL.vscode\extensions\ms-python.python-2020.2.63990\out\client\extension.js:1:783612) at async A.submitCode (c:\Users\DELL.vscode\extensions\ms-python.python-2020.2.63990\out\client\extension.js:1:780564) at async A.reexecuteCell (c:\Users\DELL.vscode\extensions\ms-python.python-2020.2.63990\out\client\extension.js:75:879318)

如何解决此问题?

推荐答案

当我安装Visual Studio Code并尝试在新版Ubuntu 18.04上从jupyter笔记本中运行一些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: Select Intepreter to start jupyter notebook server

3)再次打开笔记本电脑

3) Open the notebook again

效果很好.希望它对您有用.

And it worked fine. Hope it works for you.

这篇关于jupyter服务器:未启动,vs代码中没有内核的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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