我有多个conda环境,如下图所示:

想在Jupyter Notebook中切换,需要安装 nb_conda_kernels,指令如下:
bash
conda install nb_conda_kernels
安装完以后,在Jupyter Notebook,File---New Notebook,就能看到环境,如下图所示:

如果列表中没有(如cellpose、cell),可以手动加入,安装ipykernel,指令如下
bash
conda install ipykernel
显示cellpose,指令如下:
bash
python -m ipykernel install --user --name cellpose --display-name "cellpose"
在Jupyter Notebook的list,就能看到cellpose,如下图所示:
