Python &引用;ENOTDIR无效cwd“;在Visual Studio代码上运行新的Jupyter笔记本时

Python &引用;ENOTDIR无效cwd“;在Visual Studio代码上运行新的Jupyter笔记本时,python,visual-studio-code,jupyter-notebook,jupyter,Python,Visual Studio Code,Jupyter Notebook,Jupyter,最近,当我创建一个新的Jupyter笔记本时,Visual Studio代码中出现了一个错误“ENOTDIR invalid cwd”,我无法运行该笔记本中的单元格。当我使用旧的Jypyter笔记本或者复制旧的Jupyter笔记本并在其中运行单元格时,不会发生此错误。有人知道如何修复这个错误吗 您可以在下图右下角看到错误。 奇怪的是,python的版本并没有写在左上角,而对于旧笔记本电脑,它显示在下面 以下是我的主要“settings.json”的内容: 工作区的“settings.json”为

最近,当我创建一个新的Jupyter笔记本时,Visual Studio代码中出现了一个错误“ENOTDIR invalid cwd”,我无法运行该笔记本中的单元格。当我使用旧的Jypyter笔记本或者复制旧的Jupyter笔记本并在其中运行单元格时,不会发生此错误。有人知道如何修复这个错误吗

您可以在下图右下角看到错误。 奇怪的是,python的版本并没有写在左上角,而对于旧笔记本电脑,它显示在下面

以下是我的主要“settings.json”的内容:

工作区的“settings.json”为空,以下是工作区的“launch.json”的内容:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal"
        }
    ]
}

您是如何在VSCode中创建Jupyter的?您是否选择了Python解释器并安装了Jupyter所需的依赖项包“ipykernel”?我安装了Anaconda3,当我尝试运行“pip安装ipykernel”时,它会说“需求已经满足”“。您是否尝试过使用其他Python解释器?您能否提供相关截图,以便我们检查其他相关因素?(请覆盖您的用户名和其他个人信息)我用错误消息的屏幕截图更新了问题。我在Linux上,所以我有系统的python解释器,但我不能用它运行Jupiter笔记本。谢谢你提供的信息。在“launch.json”文件中是否有与“cwd”相关的设置?它是否包含“settings.json”中的相关设置?建议您注释掉相关的“cwd”设置并重新加载VSCode。
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal"
        }
    ]
}