Return to the toolkit

Jupyter Notebooks

Jupyter Notebook is an open-source application that allows individuals to create and share documents that contain live code, equations, visualizations and narrative text.  Uses include: data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more. Notebooks consist of blocks of textual content (Markdown) and executable Python code. A Jupyter Notebook is usually run locally but uses a web browser as the interface. Notebook files can be saved, shared, and submitted as assignments.

Why Use Jupyter Notebook?

  • Jupyter Notebooks allow students to not only explain their results but to demonstrate those results by including executable code in their reports.
  • With the integration of additional ‘kernels’, Jupyter supports over 40 programming languages, including R, Julia, and Scala.
  • Notebooks can be shared with others using email, Dropbox, GitHub and the the Jupyter Viewer
  • Code can produce rich, interactive output: HTML, images, videos, LaTeX, and custom MIME types.
  • Big data integration: Leverage big data tools, such as Apache Spark, from Python, R and Scala. Explore that same data with pandas, scikit-learn, ggplot2, TensorFlow.

How to Add Jupyter Notebooks to Your Course

Jupyter Notebooks is a Python application that runs locally (and within the browser) on one’s own computer and can be installed either using pip or conda (via Anaconda). While there no built-in integration with the course learning management system, students can export their notebooks (.pynb file to preserve executable Python code, or PDF).

Another option is use Google Colab. Colab allows you to use and share Jupyter notebooks online without having to  download or install any software.

Additional Resources:

Introduction to Jupyter Notebooks, Programming Historian
Jupyter Notebook Tutorial: Introduction, Setup, and Walkthrough
Getting Your Class Going with Jupyter, from Teaching and Learning with Jupyter, Lorena A. Barba, Lecia J. Barker, Douglas S. Blank, Jed Brown, Allen B. Downey, Timothy George, Lindsey J. Heagy, Kyle T. Mandli, Jason K. Moore, David Lippert, Kyle E. Niemeyer, Ryan R. Watkins, Richard H. West, Elizabeth Wickes, Carol Willing, and Michael Zingale

Posted by April 30, 2020