假设你的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
网友评论