Add virtual environment to jupyter kernel
The virtual environment configured in anaconda is easy to apply in pycharm and facilitates project management. How to configure the virtual environment into the kernel of jupyter notebook, the steps are as follows: 1. Enter in cmd: jupyter
kernelspec list, which has not been configured yet, There should be only one item in the list
2. Enter: conda install nb_conda, wait
3. Enter the virtual environment you want to add, for example, if I want to add TF2.1 (self-named) environment to jupyter, enter activate TF2.1
4. Enter: conda install ipykernel, wait
5. Enter: python -m ipykernel install TF2.1
6. Check the kernel list again, or enter: jupyter kernelspec list, you will see that the addition is successful.
7. Open jupyter notebook to create a new project in the new environment.