美文网首页ai药物设计
2020-04-11 Jupyterlab 配置多个Kernel

2020-04-11 Jupyterlab 配置多个Kernel

作者: 一纸素笺凝笑语 | 来源:发表于2020-04-11 14:13 被阅读0次

    Jupyterlab 可比 jupyter notebook好使多了
    pip install jupyterlab 不是jupyter-lab, 坑了好几次=_=
    多个kernel自然是不同的conda env 里的python interpreter了

    conda create -n tf2 python=3.7
    conda activate tf2
    

    在tf2中安装好所有相关的包

    (tf2) pip install jupyterlab 
    ...
    (tf2) pip install ipykernel
    (tf2) python -m ipykernel install --user --name tf2 --display-name "Python3.7 (tf2)" 
    

    最后一条命令就会在~/.local/share/jupyter/kernels/建立配置文件,
    jupyter kernelspec list 查看
    jupyter kernelspec remove python3 # 卸载kernel python3
    下次启动Jupyterlab,起始页面就可以选择新的kernel了

    相关文章

      网友评论

        本文标题:2020-04-11 Jupyterlab 配置多个Kernel

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