Tom Hale
Tom Hale

Reputation: 46775

Pylance not working in VSCode Jupyter notebooks

Pylance works for .py files:

.py with pylance

But doesn't work with Jupyter .ipynb notebooks:

.ipynb with pylance

I tried saving the .ipynb - same issue.

How can enable Pylance warnings in my notebooks?

Upvotes: 14

Views: 15529

Answers (3)

Глеб Чупин
Глеб Чупин

Reputation: 41

In my case Pylance was ignoring imports and variables. Restarting the Jupyter kernel solved it.

Upvotes: 0

Vágner Lenon
Vágner Lenon

Reputation: 64

I had this same problem and fixed by uninstall the jupyter extention and install the latest version of it.

Probably Tom has already solved your problem but if someone else is here looking for help that might solve it.

Upvotes: 3

Tom Hale
Tom Hale

Reputation: 46775

It seems that the Jupyter extension doesn't support Pylance.

I submitted this issue to address this shortcoming:

Pylance / Language server support #4307

Upvotes: 10

Related Questions