python.dataScience is “Unknown Configuration Setting” in VS Code

那年仲夏 提交于 2021-02-19 23:06:03

问题


I am running VS Code (Version 1.52) with extensions Jupyter Notebook (2020.12) and Python (2020.12) on MacOS Catalina.

Context:

I have problems getting Intellisense to work properly in my Jupyter Notebooks in VS Code. Some have had some success with adding these config parameters to the global settings of VS Code:

"python.dataScience.runStartupCommands": [
    "%config IPCompleter.greedy=True",
    "%config IPCompleter.use_jedi = False"
]

I went ahead and added those as well but then had to realize that all settings under python.dataScience are Unknown Configuration Setting. Any idea why this is and how I could this get to work?


回答1:


Since Nov 2020 the Jupyter extension is seperated from Python extension for VS Code. The setting key has been renamed from python.dataScience to jupyter^update

So in your case please rename python.dataScience.runStartupCommands to jupyter.runStartupCommands




回答2:


According to your description, you could refer to the following:

  1. Whether in the ".py" file or the ".ipynb" file, we can use the shortcut key "Ctrl+space" to open the code suggested options:

  2. It is recommended that you use the extension "Pylance", which provides outstanding language services for Python in VSCode, and related content will also be displayed in the Jupyter file:

Combine these two methods:

For setting "python.dataScience.runStartupCommands", as it shows "Unknown Configuration Setting", now we don't use it to set Jupyter's "Intellisense" in VSCode.



来源:https://stackoverflow.com/questions/65356299/python-datascience-is-unknown-configuration-setting-in-vs-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!