Omar Hammad
Omar Hammad

Reputation: 13

VSCode Jupyter Notebook syntax highlighting and autocompletion stopped working

So, I've been using VSCode for Jupyter notebooks for almost a year and a half now, and it always used to work normally, but a couple of days ago it just got broken, and I don't know why. Here's what I mean:

Jupyter Notebook on VSCode

As you can see, there's no syntax highlighting, and autocompletion doesn't work at all... but if I run the code, it does run perfectly.

It works normally in Python scripts though:

Normal Python Script

Relevant Extensions I've got:

I've got a bunch of others for C++ and Java.

Also, I've noticed that both Jupyter and Python extensions give an uncaught error, here's what I mean:

Jupyter Extension Error Python Extension Error

I have no clue what any of this means. I've tried uninstalling and re-installing the extensions, re-installing VSCode, resetting settings.json and restarting my laptop, nothing worked.

Any help will be highly appreciated. Thanks

Upvotes: 1

Views: 2853

Answers (1)

Steven-MSFT
Steven-MSFT

Reputation: 8411

Do you have installed the extension of Dependency Analytics? You need to disable it.

Some people have run across the same problem, you can refer to here.

Upvotes: 7

Related Questions