我正在尝试将新的 Jupyter 集成用于 VS Code 中的 Python 扩展,即使我安装了 Jupyter 并且它在命令提示符下工作正常,我也会收到上述错误。
这是我的环境:
Run Cell/Run All Cells
以上工具提示#%%
注释。 Select Interpreter
命令选择我的 Anaconda 环境,位于 ~/AppData/Local/Continuum/anaconda3/python.exe
. jupyter notebook
一起运行良好在 Anaconda 提示符下运行命令。 但是,每当我单击“运行单元”或按 shift-enter 时,都会收到以下错误消息:
“运行单元需要安装 Jupyter 笔记本。”来源:Python(扩展)
我还需要做些什么来配置它吗?
最佳答案
您可以通过重新启动 尝试一下VS 代码 按照下面提到的方式[它对我有用。 ]
关于visual-studio-code - VS 代码中的 "Running cells requires Jupyter notebooks to be installed"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53244986/