方法一:在一个环境中安装 JupyterLab,添加多个内核
全局环境安装jupyterlab
conda activate base
mamba install jupyterlab
每个环境中安装内核
conda activate VisiumHD_env
mamba install ipykernel
python -m ipykernel install --user --name=VisiumHD_env --display-name "Python (VisiumHD_env)"
conda activate VisiumHD_env
mamba install -c r r-irkernel
R -e "IRkernel::installspec(name = 'ir-VisiumHD_env', displayname = 'R (VisiumHD_env)')"
启动jupyterlab
conda activate base
jupyter lab
方法二:在每个新环境中安装 JupyterLab
创建新环境并安装 JupyterLab
mamba create -n VisiumHD_env r-base=4.1.0
conda activate VisiumHD_env
mamba install jupyterlab
启动
jupyter lab
需要注意全局环境中内核的命名问题,不要造成混淆