Jupyter Book

2.1.4 · active · verified Thu Apr 16

Jupyter Book is an open-source tool for building publication-quality books and documents from computational material. It enables users to write content using Markdown or Jupyter notebooks, embed computational elements, and generate interactive web-based books and publication-quality PDFs. Currently at version 2.1.4, it is an actively developed sub-project of Project Jupyter, with its evolution guided by the Executable Books Project community.

Common errors

Warnings

Install

Quickstart

This quickstart guides you through setting up a new Jupyter Book project, cloning an example, building it, and serving it locally. The `--execute` flag ensures notebooks are run during the build process.

# 1. Install Jupyter Book
pip install jupyter-book

# 2. Clone a sample project (e.g., mystmd-quickstart)
git clone https://github.com/jupyter-book/mystmd-quickstart.git
cd mystmd-quickstart

# 3. Initialize a Jupyter Book project (creates myst.yml)
jupyter book init .

# 4. (Optional) Install dependencies for notebook execution
pip install -r requirements.txt

# 5. Build your book
jupyter book build . --execute

# 6. Serve your book locally
jupyter book start

view raw JSON →