简体   繁体   中英

Jupyter Notebooks not running on VS Code Python extension

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".

在此处输入图像描述

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:

在此处输入图像描述

and selected the Kernel :

在此处输入图像描述

which is listed as:

在此处输入图像描述

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

在此处输入图像描述

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

在此处输入图像描述

Why is this happening?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM