Reputation: 121
I keep getting this message when I run Jupyter Notebook.
Upvotes: 12
Views: 31574
Reputation: 21
i installed an extension named "Pylance" then restarted vs code, it worked
Upvotes: 1
Reputation: 41
I met this issue on Ubuntu 18.04 LTS with python interpreter python3.6.9 + VS code python extension 2022.14
So the reason should be:
The new version python extension is not compatible with old python version 3.6.9.
Solution:
either downgrade the python extension to 2022.06(can be even earlier, not fully tested); or upgrade the python interpreter version.
Upvotes: 4
Reputation: 154
Pylance is now the default language server (see here). As such, I resolved the issue by changing my settings.json to:
"python.languageServer": "Pylance"
You may need to install the Pylance extension, if you don't already have it.
Upvotes: 11
Reputation: 9447
Check whether the following code is specified correctly in your setting.json:
"python.languageServer":"Jedi"
Upvotes: 1