Weizhen Fang
Weizhen Fang

Reputation: 51

Unable to use jupyter notebook in VScode

When I run jupyter notebook in VScode, it will show the error message. Could someone tell me how to install the ipykernel. Thank you so much!

The fist line said "Python 2.7.16 64-bit needs install ipykernel." when I click the install which in the blue icon, it will show that ipykernel can not be installed.

And vscode can not connet to the kernel: Python 2.7.16 64-bit enter image description here

Upvotes: 0

Views: 1851

Answers (2)

Little Stamp
Little Stamp

Reputation: 1

You may need to install the 'ipykernel' in your environment and activated it through "python -m ipykernel install --user". This will activate the kernel in this environment.

Upvotes: 0

Jill Cheng
Jill Cheng

Reputation: 10354

Please manually install this kernel "ipykernel" in the VS Code terminal: (pip install ipykernel)

If you have more than one python environment, please make sure that the VS Code terminal you are currently using is the environment you need ("Python 2.7.16 64-bit"). (Check python: python --version or pip --version)

enter image description here

If it still cannot install "ipykernel", please try to use another python environment or reinstall python.

Reference: Working with Jupyter Notebooks in Visual Studio Code.

Upvotes: 1

Related Questions