我正在尝试使用 vs code 中的 jupyter notebooks 并安装 jupyter notebook 扩展,我正在使用 (base)conda 环境执行。虽然这发生了
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)
如何解决这个问题?
原文由 Cheemakurthi Mukesh 发布,翻译遵循 CC BY-SA 4.0 许可协议
当我安装 Visual Studio Code 并尝试在我的新 Ubuntu 18.04 上从 jupyter notebook 运行一些 Python 代码时,我遇到了完全相同的问题。
我是如何解决的:
按
Command+Shift+P
打开一个新的命令面板类型
>Python: Select Intepreter to start jupyter notebook server
3)再次打开笔记本
而且效果很好。希望对你有效。