Jupyter extension to export notebooks as PDFs
Jupyter Notebooks as PDF
This Jupyter notebook extension allows you to save your notebook as a PDF.
Three new features compared to the official "save as PDF" extension:
- produce a PDF with the smallest number of page breaks,
- the original notebook is attached to the PDF; and
- this extension does not require LaTex.
The created PDF will have as few pages as possible, in many cases only one. This is useful if you are exporting your notebook to a PDF for sharing with others who will view it on a screen.
To make it easier to reproduce the contents of the PDF at a later date the original notebook is attached to the PDF. Not all PDF viewers know how to deal with attachments. This mean you need to use Acrobat Reader or pdf.js to be able to get the attachment from the PDF. Preview for OSX does not know how to display/give you access to PDF attachments.
To use this bundler you need to install it:
python -m pip install notebook-as-pdf pyppeteer-install
The second command will download and setup Chromium. It is used to perform the HTML to PDF conversion.
Create a notebook and the click "File -> Download As". Click the new menu entry called "PDF via HTML". Your notebook will be converted to a PDF on the fly and then downloaded.
You can also use it with
jupyter-nbconvert --to PDFviaHTML example.ipynb
which will create a file called
You will have to use Acrobat Reader to see the attachment to your PDF. Preview on OSX can not display PDF attachments.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size notebook_as_pdf-0.1.0-py3-none-any.whl (5.3 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size notebook-as-pdf-0.1.0.tar.gz (4.1 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for notebook_as_pdf-0.1.0-py3-none-any.whl