How to change the conda environment in Jupyter Notebook

  1. First activate the conda environment that you have added

Linux&mac environment:

source activate name_test
Copy the code

Windows:

conda activate name_test
Copy the code
  1. Install ipykernel
conda install ipykernel
Copy the code
  1. Enter the Jupyter Notebook
jupyter notebook
Copy the code
  1. Select conda environment to create a new file

After the above three steps are completed, the corresponding Conda has been added to the Jupyter Notebook. When creating a new file, you can choose the corresponding environment.