Using both Python 2.x and Python 3.x in IPython Notebook

后端 未结 11 2288
生来不讨喜
生来不讨喜 2020-11-22 02:27

I use IPython notebooks and would like to be able to select to create a 2.x or 3.x python notebook in IPython.

I initially had Anaconda. With Anaconda a global envi

11条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-22 03:07

    • If you are running anaconda in virtual environment.
    • And when you create a new notebook but i's not showing to select the virtual environment kernel.
    • Then you have to set it into the ipykernel using the following command
    $ pip install --user ipykernel
    $ python -m ipykernel install --user --name=test2
    

提交回复
热议问题