Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How To Get IPython Notebook To Run Python 3?

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 great.
  3. I setup Anaconda's Python 3 environment as Pycharm's interpreter, works great.
  4. I launched the Anaconda "launcher.app" and launched IPython Notebook. However, iPython Notebook is running Python 2 not 3.

Over three hours of Googling later, I cannot figure out how to set IPython Notebook to run Python 3 instead of 2.

like image 832
Anton Avatar asked Dec 03 '13 19:12

Anton


People also ask

How do I run IPython notebooks?

Launch a Notebook To launch a Jupyter notebook, open your terminal and navigate to the directory where you would like to save your notebook. Then type the command jupyter notebook and the program will instantiate a local server at localhost:8888 (or another specified port).

How do I run a Jupyter Notebook in IPython?

In the Notebook Dashboard navigate to find the notebook: clicking on its name will open it in a new browser tab. Click on the menu Help -> User Interface Tour for an overview of the Jupyter Notebook App user interface. You can run the notebook document step-by-step (one cell a time) by pressing shift + enter.


1 Answers

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 

like image 141
Noha Elprince Avatar answered Sep 22 '22 08:09

Noha Elprince