Jupyter switches the conda virtual environment

Environment installation 

conda install nb_conda

Enter the virtual environment you want to use:

conda activate your_env_name

In the conda virtual environment you want to use:

conda install -y jupyter

Install jupyter in the virtual environment:

conda install -y jupyter

 

restart jupyter

At this point we have installed all the things that should be installed, exit the virtual environment, we need to restart jupyter. After restarting, open the note and click Kernel → Change kernel to switch the virtual environment.

insert image description here

 If there are multiple virtual environments, we can see which environment we are currently in through the upper right corner. It is very convenient to switch environments in seconds.

Jupyter Notebook switches conda virtual environment_jupyterhub conda option_IT_xiao_bai's blog-CSDN Blog

 

Guess you like

Origin blog.csdn.net/weixin_43135178/article/details/132217252