Setting up iPython Notebook (Jupyter)


iPython Notebook or Jupyter (as it was renamed recently) is a substitution of the basic Python shell. It is a great way to write and run Python code when you’re doing exploration type of work. Doing data analysis with Python is a typical case when Jupyter would come in very handy. The notebook comes installed with the latest versions of Python. You can start a notebook session by typing this in the command line:

ipython notebook

That should open a jupyter notebook in your default browser. If that doesn’t happen, you should probably install the tool first through the command line using pip:

pip install jupyter

or

pip install ipython[notebook]

To start a new jupyter session, you should go to New -> Python 3. You should see something like this now:

how to install jupyter ipython notebook

You can now start typing code in jupyter cells and press Ctrl+Enter to execute it. To create new empty cells, use Alt+Enter. You can always go back and edit any cell in the notebook. You will need some rounds of practice until you get the hang of it, but it will eventually pay off.