[jupyter: Add kernel] The new environment of conda is added to jupyter

conda created a new environment, but when I opened jupyter, I found that there was no such environment option.


It was found that adding a virtual environment to jupyter requires a connection. The steps are as follows.

  1. First activate your own virtual environment
    .
  2. Check if ipykernel is installed in the environment
    Insert image description here
  3. Use the command to add this virtual environment to the jupyter kernel
    python -m ipykernel install --name your_kernel_nameInsert image description here
  4. Reopen jupyter
    Insert image description here
    and found a new environment
    Insert image description here
    , and the name here is the same as your_kernel_name set after –name.

Guess you like

Origin blog.csdn.net/ZHorcrux/article/details/130854081
Recommended