Jupyter Notebooks not running on VS Code Python extension

Question:

I have installed latest Python 3 (python-3.11.0-amd64) and latest VS Code (VSCodeUserSetup-x64-1.73.1). I also installed the "Python Extension for Visual Studio Code".

enter image description here

which as you can see it claimed that it comes with Jupyter Notebooks feature to Create and edit Jupyter Notebooks

I have selected the interpreter:

enter image description here

and selected the Kernel:

enter image description here

which is listed as:

enter image description here

but when I ran the cell, I am getting this error message, asking for Jupyter Package:

enter image description here

Jupyter cannot be started. Error attempting to locate Jupyter: Running
cells with ‘Python 3.11.0 64-bit’ requires notebook and jupyter
package. Run the following command to install ‘jupyter and notebook’
into the Python environment. Command: ‘python -m pip install jupyter
notebook -U or conda install jupyter notebook -U’ Click here for more
info.

As you can see "Juputer" has been installed but

enter image description here

Why is this happening?

Asked By: Behseini

||

Answers:

The error prompt actually tells you how to solve the problem. Click install can solve it.

The Jupyter Notebook is an extension which needs jupyter package. So you have to install jupyter package by using command

pip install jupyter notebook.

The use steps in github also specify: Install Anaconda/Miniconda or another Python environment in which you’ve installed the Jupyter package

Answered By: MingJie-MSFT