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.
pip install jupyter-bookNo compatibility data collected yet for this library.
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.
Review the official 'Upgrading to Jupyter Book 2' guide. Key changes include web page path conventions (underscores to hyphens), configuration file format (v1: `_config.yml`, v2: `myst.yml`), and some features still being reimplemented or having different behavior.
Commonly, `jupyter_execute_notebooks` has been deprecated in favor of `nb_execution_mode`. Refer to the `myst-nb` and `myst-parser` documentation for a complete list of updated configuration options. Warnings are usually issued during build with the new name.
This is a minor visual artifact due to client-side rendering. There is no direct fix, but optimizing page load times can reduce its visibility.
Interact with Jupyter Book via its CLI commands (`jupyter book init`, `jupyter book build`, `jupyter book start`) rather than attempting to `import jupyter_book` in Python scripts for core functionality.
Ensure `pip install jupyter-book` completed successfully. Verify your Python environment's script directory is in your system's PATH. If using a virtual environment, ensure it's activated. Reinstalling Python/Anaconda with default settings can often fix PATH issues.
Update your configuration file(s). Replace `jupyter_execute_notebooks` with `nb_execution_mode`. Check other deprecated options in the `myst-nb` documentation.
Consult the MyST Cheat Sheet and MyST Guide for correct syntax, especially for directives, cross-references, and admonitions. Ensure custom Sphinx extensions are correctly configured for MyST.
Install a full LaTeX distribution (e.g., TeX Live, MiKTeX) on your system. Ensure the `pdflatex` executable is accessible from your system's PATH. This is especially common on Windows if a LaTeX distribution is not fully set up.