美文网首页
将conda环境加入jupyterlab

将conda环境加入jupyterlab

作者: dc的梦呓 | 来源:发表于2020-07-21 20:44 被阅读0次

假设你的conda中的一个环境名为 py36_test,现想将其加入到jupyterlab,这样在jupyterlab中就可以选择 py36_test 了。
可通过以下方法进行增加(以 windows 为例):

activate py36_test   #先激活环境
conda install ipykernel  #安装 ipykernel 库
ipython kernel install --user --name=py36_test #设置kernel,--user表示你的当前账户下的,py36_test 为kernel名
deactivate

参考资料:
https://stackoverflow.com/questions/53004311/how-to-add-conda-environment-to-jupyter-lab

相关文章

网友评论

      本文标题:将conda环境加入jupyterlab

      本文链接:https://www.haomeiwen.com/subject/dfdhcktx.html