win11旗舰版安装WSL子系统和环境-14安装jupyter noetbook 和jupyter内核

安装jupyter noetbook 和jupyter内核

在这里插入图片描述
https://www.jb51.net/article/184447.htm
win11旗舰版安装WSL子系统和环境-14安装jupyter noetbook 和jupyter内核_第1张图片
Jupyter notebook 添加或删除内核
1、切换到要添加的虚拟环境,确认是否安装 ipykernel
python -m ipykernel --version
如果没有安装,则安装:
python -m pip install ipykernel
2、为 Jupyter notebook 添加内核
python -m ipykernel install --user --name=kernelname --display-name ‘py37’
3、查看 Jupyter notebook kernel
jupyter kernelspec list4、删除 jupyter 内核
jupyter kernelspec remove kernelname

如果想要查看Jupyter Notebook内核指定的Python环境位置,可在cmd中输入:
ipython kernelspec list
在这里插入图片描述
win11旗舰版安装WSL子系统和环境-14安装jupyter noetbook 和jupyter内核_第2张图片
win11旗舰版安装WSL子系统和环境-14安装jupyter noetbook 和jupyter内核_第3张图片
在这里插入图片描述
python -m ipykernel install --user --name=yxy10 --display-name ‘yxy10’
win11旗舰版安装WSL子系统和环境-14安装jupyter noetbook 和jupyter内核_第4张图片

你可能感兴趣的:(jupyter,python,linux)