How To Get IPython Notebook To Run Python 3?

前端 未结 9 632
被撕碎了的回忆
被撕碎了的回忆 2021-01-30 02:03

I am new to Python to bear with me.

  1. I installed Anaconda, works great.
  2. I setup a Python 3 environment following the Anaconda cmd line instructions, works
相关标签:
9条回答
  • 2021-01-30 02:44

    For linux 16.04 Ubuntu you can use

    sudo apt-get install ipython3
    

    and then use

    ipython3 notebook
    

    to open the notebook in the browser. If you have any notebooks saved with python 2 then it will automatically convert them to Python 3 once you open the notebook.

    0 讨论(0)
  • 2021-01-30 02:48

    To use jupyter with python 3 instead of python 2 on my Windows 10 with Anaconda, I did the following steps on anaconda prompt:

    pip3 install ipython[all]
    

    Then,

    ipython3 notebook
    
    0 讨论(0)
  • 2021-01-30 02:49

    To set IPython Notebook to run Python 3 instead of 2 on my MAC 10.9, I did the following steps

    $ sudo pip3 install ipython[all]
    

    Then

    $ ipython3 notebook
    

    0 讨论(0)
提交回复
热议问题