Jupyter Notebook

Jupyter notebook is a web application for developing, documenting, & sharing code. It's become pretty popular among data scientists for visualizing & analyzing datasets, but there's some limitations.


Starting Jupyter Notebook

Jupyter Notebook is one of the default applications on the Navigator homepage. Another way is to open Jupyter Notebook is by using Terminal; make sure that you are in the correct directory and then use the following command:

$ jupyter notebook

The Jupyter dashboard should open on your default web browser:

Navigate into your desired directory and then select Python 3 under New to create a Python 3 Notework. This will open up an empty notebook, which you can then name by clicking on Untitled. To open a pre-existing notebook, simply click on the .iypnb file and make sure that the kernel is connected.

Understanding Cells

Within a coding cell, you can write snippets of code. When you run a cell, the code is sent to a kernel that executes it. Variables can be called or used from previously ran cells.

To run a cell, you can either click on the Run button or use Ctrl/Command - Enter. A running cell is indicated by an asterisk. Once the cell has finished running, the asterisk is replaced by a number that tells you the number of cells that you have ran up to that point.

Be careful about the order. Cells can be executed out of order or moved around and variables can be overwritten.

Markdown cells allow you to add documentation to your code. Headings can be created using hashtags: # Heading 1, ## Heading 2.

To run the markdown cell, click Run or use Ctrl/Command - Enter.

Stopping Jupyter Notebook

To shutdown a running notebook, exit the notebook, select the appropriate box from the directory, and click Shutdown.

To exit Jupyter Notebook, click Quit on the upper left corner or use Ctrl/Command - C in the Terminal.


There are times when coding with an IDE or text editor is preferable over using Jupyter Notebook. Here is a fun video about several limitations of Jupyter Notebook:

Last updated