目的:将利用conda自定义的python虚拟环境添加到jupyter notebook中
- 创建虚拟环境:conda create -n snp python=3.8.3,并切换到当前虚拟环境下conda activate snp。(注意snp代表的为创建的虚拟环境名称)
- 安装ipykernel包:conda install ipykernel
- 添加到Jupyter中:python -m ipykernel install --name snp #后面的环境名字需要更换
- 重启Jupyter,即可看到添加的虚拟环境
目的:jupyter notebook 删除kernel
1.查看安装的内核和位置
jupyter kernelspec list
2.不想要该kernel直接移除
jupyter kernelspec remove z1 (z1为要移除的kernel的名字)