Home > Software design >  VSCode Jupyter Notebook syntax highlighting and autocompletion stopped working
VSCode Jupyter Notebook syntax highlighting and autocompletion stopped working

Time:11-02

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:

  • Jupyter ( Keymap & Notebook Renderers)
  • Python
  • Pylance

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

CodePudding user response:

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.

  • Related