how to save as a pdf in a jupyter notebook code example Example: jupyter notebook for pdf generation python -m pip install -U notebook-as-pdf pyppeteer-install