Link Conda environment with Jupyter Notebook

前端 未结 5 1803
眼角桃花
眼角桃花 2020-11-28 19:59

I\'m trying to set a good environnement for doing some scientific stuff with python. To do so, I installed Jupyter & miniconda.

Then I want to be able to have di

5条回答
  •  孤街浪徒
    2020-11-28 20:03

    Assuming your conda-env is named cenv, it is as simple as :

        $ conda activate cenv
        (cenv)$ conda install ipykernel
        (cenv)$ ipython kernel install --user --name=
        (cenv($ conda deactivate
    

    If you restart your jupyter notebook/lab you will be able to see the new kernel available.

    PS: If you are using virtualenv etc. the above steps hold good.

提交回复
热议问题