Jupyter Notebook

Students cheer on the Redhawks during a sporting event at Miami University.
The Jupyter Notebook is a web application that allows editing and running notebook documents that contain programming codes, equations, graphical displays and explanatory contents via a web browser. Jupyter Notebook is very similar to R Markdown in that you can use a statistical programming language to take care of web related coding that usually takes the form of html, CSS, etc.

Jupyter Interface showing the File, Edit, View, Insert, Cell, Kernel, Widgets, and Help functions

Shown above is the Jupyter Notebook Interface. At the top next the Jupyter software icon, the last save point is shown. Under that are the main functions of the software, which correspond to similar menu options in other software such as Microsoft Word. Below are some of the most commonly used commands and, for some, their corresponding keyboard shortcut.

  • File, then Save (control + S)
  • Insert, then Insert cell above
  • Insert, then Insert cell below
  • Cell, then Run Cells (highlight code, then Shift + Enter)
  • Cell, then Cell Type, and then Code makes a cell in code format (Y)

visual example of a blank code cell

Cell, then Cell Type, and then Markdown makes a cell in markdown format (M)

visual example of a blank markdown cell

For a list of other commands, type %lsmagic into a code cell

Code cell showing command % L S magic with output below showing list of all possible cell commands

Note: One that is used very often is %%HTML, which converts a block of code into the HTML format. However, HTML code alone can also be used without having to specify this command in a markdown block.