Jupyter Notebook cannot switch Change kernel

The virtual environment is installed in Anaconda, but the Change kernel cannot be switched on the Jupyter Notebook page, and the problem can be solved through the following steps.

Table of contents

1. Base environment

2. Virtual environment

2.1 Check the existing virtual environment

2.2 Enter the virtual environment

3. Error handling


1. Base environment

Execute in the base environment

conda install nb_conda_kernels

2. Virtual environment

2.1 Check the existing virtual environment 

conda env list

2.2 Enter the virtual environment

activate 虚拟环境名称

Execute in a virtual environment:

conda install ipykernel

3. Error handling

Running the .pynb program reports an error:

TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See...

Solution

The reason for this problem is that ipywidgets is not installed, so just install the ipywidgets package. The command is as follows:

pip install ipywidgets

Through the above steps, the problem is completely solved, and the kernel can be changed in Jupyter Notebook. 

Supongo que te gusta

Origin blog.csdn.net/weixin_43734080/article/details/130084874
Recomendado
Clasificación