見:https://github.com/Anaconda-Platform/nb_conda_kernels
說白了三句話:
1、在你的conda環境中安裝jupyter/jupyterlab,不限制是不是在base環境;
2、在安裝jupyter的環境中安裝 nb_conda_kernels
conda install -n notebook_env nb_conda_kernels
3、在其它沒有安裝jupyter/jupyterlab的環境中安裝 ipykernel
conda install -n python_env ipykernel
# 或創建的時候就安裝:
conda create --name python_env ipykernel -y
打開jupyter/jupyterlab就會顯示多個conda內核,也可以隨意切換。