Skip to main content

Convert notebooks to PDF using Reportlab

Project description

An experimental tool to convert Jupyter notebooks to PDFs using Reportlab.

Install:

pip install nbconvert_reportlab

Use:

jupyter nbconvert --to pdf-rl MyNotebook.ipynb

Jupyter comes with support for generating PDFs by filling a template to make a Latex file, and then running Latex to convert that to PDF. This is a powerful approach, but Latex code is not a great intermediate format for automatic generation, and that can lead to a variety of problems.

This package uses the open source Reportlab Toolkit to convert notebooks directly to PDFs. This avoids a lot of complexity, but at least for now there are many things that it cannot handle and will simply skip over.

See an example output PDF.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nbconvert_reportlab-0.2.tar.gz (108.2 kB view details)

Uploaded Source

Built Distribution

nbconvert_reportlab-0.2-py2.py3-none-any.whl (13.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file nbconvert_reportlab-0.2.tar.gz.

File metadata

File hashes

Hashes for nbconvert_reportlab-0.2.tar.gz
Algorithm Hash digest
SHA256 7c299a16ebf0c30db78671f9b7e0e04fa5e869890d53cb49b2b4e212c15a3c93
MD5 e5f98f300617bd4b7fa1617f0656476e
BLAKE2b-256 ecaba5acc2c5bf1f9d9548857ab98f355454ef98973bcf6f55629ca00ebd928d

See more details on using hashes here.

File details

Details for the file nbconvert_reportlab-0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for nbconvert_reportlab-0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1fdcb629d808d5621800d9dcd1190199761e02287eb3f8cb8d167989d4669180
MD5 87e7a03785d8e968e15635426b6ca2e9
BLAKE2b-256 70268e3a72dd02f6a372957830143e433271dadbbd7d09a06e56f5dbdec406c2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page