jupyter notebook running kernel in different env

前端 未结 5 1754
醉酒成梦
醉酒成梦 2020-11-28 01:11

I\'ve gotten myself into some kind of horrible virtualenv mess. Help?!

I manage environments with conda. Until recently, I only had a python2 jupyter

5条回答
  •  旧时难觅i
    2020-11-28 02:02

    @tschundler's solution works perfectly if your environment has already been created.

    If you want to change the default kernel at the creation of your virtual environment and avoid any manual configuration, you just need to add jupyter at the end of the conda command:

    conda create --name ENVNAME python=PYTHONVERSION jupyter

    The correct kernel will then be used when you use ipython or jupyter notebook.

提交回复
热议问题