Skip to Content

Jupyter: Live Code in Open Textbooks


Jupyter is an open-source platform for documents that combine live code, equations, visualizations and narrative text. Its notebooks are widely used in data science, scientific research and teaching because readers can run and change the code as they read.

LibreTexts runs its own Jupyter Hub, and live notebooks can be embedded directly in LibreTexts pages. That turns a static textbook page into a hands-on lab where students can tweak parameters and see the results right away.

Open the LibreTexts Jupyter Hub at jupyter.libretexts.org.

What you can do with Jupyter

  • Write and run notebooks in Python, R, Julia, Octave, SageMath and C++.
  • Embed live code in your LibreTexts pages so students can run examples without installing anything.
  • Add interactivity with widgets, interactive plots, maps, 3D models and molecular viewers.
  • Bring in your own data by attaching data files to your code blocks.

Where to find more help

This course gives you quick tours. For the full details, these LibreTexts resources are kept up to date by our team:

Take a look: Jupyter

Here's the Construction Guide's overview of Jupyter. It updates automatically whenever the guide does.

A quick introduction to Jupyter at LibreTexts, live code notebooks you can run and embed in open textbooks.

Commenting is not enabled on this course.