Soumyajit Sarkar
Soumyajit Sarkar

Reputation: 33

How to fix Visual Studio Code Jupyter notebook error?

VScode for python runs perfectly, without any error, problems starts whenever I try to run Jupyter notebook inside VScode. It starts with Ipython Kernel loading and then it shows Command Failed Error. Any fix for this ? I have no idea what's the problem and I don't know much about the environment and stuffs also.

Thank You.

The Error I'm getting, first an Ipython kernel loading is shown then followed by this error.

Upvotes: 1

Views: 11120

Answers (1)

Steven-MSFT
Steven-MSFT

Reputation: 8431

From your picture, VSCode said Command failed, and it's a very long command. It mainly includes two parts: activate the conda base environment and change the vscode python environment through "Python" extension. And from the top right of the picture, it shows the jupyter server start failed.

So you can try to do two things:

First one: change the environment. Instead of using conda, download and install a global python from the official website. And recommend creating a virtual environment. Then select the environment instead of conda base environment.

Second one: reinstall or downgrade the 'Python' extension(if the first one not work).

This problem can be caused by the package in the environment, so I recommend you just change to another environment.

Upvotes: 1

Related Questions