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

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

    I looked at this excellent info and then wondered, since

    1. i have python2, python3 and IPython all installed,
    2. i have PyCharm installed,
    3. PyCharm uses IPython for its Python Console,

    if PyCharm would use

    1. IPython-py2 when Menu>File>Settings>Project>Project Interpreter == py2 AND
    2. IPython-py3 when Menu>File>Settings>Project>Project Interpreter == py3

    ANSWER: Yes!

    P.S. i have Python Launcher for Windows installed as well.

提交回复
热议问题