Jupyter Notebook 中切换/使用 conda 虚拟环境的方式(解决jupyter notebook 环境默认在base下面的问题)
使用 nb_conda_kernels 添加所有环境
一键添加所有 conda 环境
conda activate my-conda-env # this is the environment for your project and code
conda install ipykernel
conda deactivateconda activate base # could be also some other environment
conda install nb_conda_kernels
jupyter notebook
这里的 conda install nb_conda_kernels
是在 base 环境下操作的。
安装好后,打开 jupyter notebook 就会显示所有的 conda 环境啦,点击随意切换。