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.

Filename, size & hash SHA256 hash help File type Python version Upload date
nbconvert_reportlab-0.2-py2.py3-none-any.whl (13.3 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Nov 15, 2017
nbconvert_reportlab-0.2.tar.gz (108.2 kB) Copy SHA256 hash SHA256 Source None Nov 15, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page