vscode python jedi client: couldn't create connection to server
Asked Answered
H

4

12

I keep getting this message when I run Jupyter Notebook.

  • comment :

1

  • output:

2

Hyracoid answered 12/5, 2022 at 4:6 Comment(1)
I think you should probably ask here: github.com/microsoft/vscode-jupyterKwashiorkor
T
10

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.

Thuggee answered 27/5, 2022 at 9:31 Comment(0)
B
4

I met this issue on Ubuntu 18.04 LTS with python interpreter python3.6.9 + VS code python extension 2022.14

  • If I downgrade the VS code python extension to 2022.06, it works.
  • If I install a new version python (e.g. python3.9), it works.

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.

Bathroom answered 16/9, 2022 at 9:21 Comment(2)
it is my case. After changing interpreter env 3.6 -> to -> 3.8 all error pop-ups disappeared.Countercharge
yeah this works when using an older python version thank youGunwale
C
1

Check whether the following code is specified correctly in your setting.json:

"python.languageServer":"Jedi"
Comparative answered 12/5, 2022 at 5:52 Comment(3)
I did as instructed, but the comment is still showing up.Hyracoid
@Insu Gim Could you please provide more information so that I can reproduce the problem.Comparative
Change python.languageServer value to Default is work for me.Uncommonly
J
1

i installed an extension named "Pylance" then restarted vs code, it worked

Joejoeann answered 6/4, 2023 at 12:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.