jupyter notebook running kernel in different env

前端 未结 5 1752
醉酒成梦
醉酒成梦 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条回答
  •  心在旅途
    2020-11-28 01:43

    There is also an easy way here

    workon my-virtualenv-name  # activate your virtualenv, if you haven't already
    pip install tornado==4.5.3
    pip install ipykernel==4.8.2
    

    You should now be able to see your kernel in the IPython notebook menu: Kernel -> Change kernel and be able to switch to it (you may need to refresh the page before it appears in the list). IPython will remember which kernel to use for that notebook from then on.

    This worked for me. source

提交回复
热议问题