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

后端 未结 11 2175
生来不讨喜
生来不讨喜 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:14

    If you’re running Jupyter on Python 3, you can set up a Python 2 kernel like this:

    python2 -m pip install ipykernel
    
    python2 -m ipykernel install --user
    

    http://ipython.readthedocs.io/en/stable/install/kernel_install.html

提交回复
热议问题