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

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

    From my Linux installation I did:

    sudo ipython2 kernelspec install-self

    And now my python 2 is back on the list.

    Reference:

    http://ipython.readthedocs.org/en/latest/install/kernel_install.html


    UPDATE:

    The method above is now deprecated and will be dropped in the future. The new method should be:

    sudo ipython2 kernel install

提交回复
热议问题