Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exporting & PDF Generation

Overview

Converting a Jupyter notebook to a shareable PDF is a common task. This documentation covers three approaches:

  1. Direct PDF via nbconvert (simplest, requires LaTeX).
  2. HTML export + browser print (universal, manual step).
  3. Automated headless Chromium (modern, no LaTeX).

Comparison

MethodEaseSpeedRequirementsNotes
nbconvert PDFEasyFastLaTeXFails if LaTeX missing
HTML + PrintMediumMediumBrowserManual step; good UI control
ChromiumMediumFastChromiumFully automated; modern alternative to LaTeX

Choosing the Right Method

  • If LaTeX is installed: Use nbconvert for simplicity.
  • If you prefer a UI: Export to HTML and use browser Print dialog.
  • If you want full automation without LaTeX: Use headless Chromium.

All three methods are implemented as helper cells in the notebook for easy access.