Exporting a notebook to PDF
Upload your notebook and this tool opens a print-ready version in a new tab. From there you use your browser's print dialog to save it as a PDF. It's a few more clicks than a direct download, but that's the only way to do it from a browser โ JavaScript can't silently trigger a PDF save.
When does this come in handy?
Sharing with people who don't use Python is the main one. A PDF opens anywhere without any setup. It's useful for sending an analysis to a manager, submitting coursework, or attaching results to a report where the reader just needs to read the output, not run the code.
It also helps if you don't have a local Python environment set up. The traditional route โ jupyter nbconvert --to pdf โ requires a working LaTeX installation, which is a significant setup step. This skips that entirely and works from any browser.
How to use it
- Upload your
.ipynbfile above. - A formatted view of the notebook opens in a new tab, and the print dialog launches automatically.
- Choose Save as PDF (Chrome/Edge) or PDF (Safari/Firefox) as the destination, then save.
On Windows, look for Microsoft Print to PDF in the printer list. On macOS, the PDF button is in the bottom-left corner of the print dialog.
Tips for a better output
If code cells are getting cut off on the right edge, try landscape orientation โ it gives each line more room. Reducing the print scale to around 80โ90% also helps with wide cells. For cleaner pages, turning off "Headers and footers" in the print dialog removes the URL and timestamp Chrome adds by default.
The layout works with both A4 and US Letter. If you're submitting for a course with no specified size, A4 is the safer default internationally.
Frequently asked questions
Browsers don't expose a "save as PDF" API to JavaScript. The only path to PDF is through the print dialog. Opening a clean tab with just the notebook keeps distractions out and gives you control over page size and margins before saving.
nbconvert goes through LaTeX, which gives you proper equation typesetting and finer layout control, but requires TeX Live or MiKTeX installed. This uses your browser's renderer instead. For most notebooks (code, text, some charts) the browser output looks great. For notebooks heavy on LaTeX math, nbconvert will produce better-looking equations.
Yes. Download the notebook as .ipynb from Colab (File โ Download โ Download .ipynb) or Kaggle and upload it here. Note that Colab also has its own File โ Print option, but this tool strips out Colab's UI so the PDF contains only the notebook content.
A4 or US Letter both work fine. For wide code cells, landscape usually looks better. If you're submitting for a class and there's no specified size, A4 is the safer default internationally.
Other notebook tools
Need a different format?