1

自动完成功能不适用于 Visual Studio 代码中的 jupyter notebook。它曾经工作过,就在一天前。有时它仍然可以工作,但只是在打开编辑器的前几秒钟,然后它就停止显示建议和自动完成代码。

以下是 jupyter 的所有 settings.json:

{
    "workbench.editorAssociations": [
        {
            "viewType": "jupyter.notebook.ipynb",
            "filenamePattern": "*.ipynb"
        }
    ],
    "python.languageServer": "Pylance",
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "python.pythonPath": "C:\\Users\\DELL\\AppData\\Local\\Programs\\Python\\Python39\\python.exe",
    "window.zoomLevel": -1,
    "jupyter.themeMatplotlibPlots": true,
    "python.autoComplete.extraPaths": [
        "C:\\Users\\<DELL\\AppData\\Local\\Programs\\Python\\Python39\\python.exe"
        ],
        "jupyter.variableQueries": [
        
        
        ],
        "terminal.integrated.tabs.enabled": true,
        "python.analysis.extraPaths": [
            "C:\\Users\\<DELL\\AppData\\Local\\Programs\\Python\\Python39\\python.exe"
        ],
        "jupyter.jupyterServerType": "local",

}

这是普通的 jupyter 窗口: Normal Jupyter Window

这里是所有已安装的扩展: 已安装扩展

编辑:- 自动完成在其他语言中运行良好,奇怪的是,在我在 jupyter 中使用任何“导入语句”之前它运行良好。在调用“import”之前,它会向我显示“if”、“and”和其他简单关键字的建议,但是一旦我导入 numpy 或 pandas,它甚至会停止显示“if”、“and”或“def”的建议

4

0 回答 0