Che*_*esh 26 python visual-studio-code jupyter-notebook
我正在尝试使用 vs 代码中的 jupyter 笔记本并安装了 jupyter 笔记本扩展,我正在使用(基础)conda 环境进行执行。当这发生时
错误:无法启动 Jupyter。尝试定位 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) 在 async A.reexecuteCell (c:\Users\DELL.vscode\extensions\ms-python.python-2020.2.63990\out\client\extension.js:75:879318)
如何解决这个问题?
小智 39
当我安装 Visual Studio Code 并尝试在我的新 Ubuntu 18.04 上从 jupyter notebook 运行一些 Python 代码时,我遇到了完全相同的问题。
我是如何解决的:
1) 按Command+Shift+P打开一个新的命令面板
2) 类型 >Python: Select Intepreter to start jupyter notebook server
3)再次打开笔记本
它工作得很好。希望对你有效。
Ant*_*nte 12
我安装了多个版本的 Python。它发生在我身上,我已经通过这种方式修复了它。Ctrl+Shift+p 并选择 Python:选择解释器以启动 Jupyter 服务器

什么都不会发生,然后再次按 Ctrl+Shift+p 并选择 Python:创建新的空白 Jupyter Notebook。它有效
我什至在底部将 Python 版本设置为 3.8,尽管我选择的版本是 3.7.5,但它也适用于新功能 print(a:=4)。尽管如此,我还是不得不吃 Anaconda Navigator 的 VS Code。
小智 11
我已经看过所有可能的解决方案但不起作用,最后我只是升级jupyter,,notebook和jupyterlab,喜欢pip3 install -U jupyterlab,我可以在VScode中选择内核!
Command+Shift+P在 MacCtrl+Shift+p上按,在 Windows 上按
类型 Python: Select Interpreter to start Jupyterserver
它会向您显示已安装的Python版本的下拉列表。
我选择了python 3.7.5,它对我有用,你可以选择安装在你机器上的 python 版本。
| 归档时间: |
|
| 查看次数: |
24732 次 |
| 最近记录: |