Jupyter notebook (.ipynb) to PDF

Your notebook, ready for paper. Open a static .ipynb file and check the code, equations, tables, saved text and images before you export, on A4 or Letter.

Hide code? PDF without code

Your notebook stays on this device. No account, no upload, no code running behind your back.

solar-analysis.ipynb Saved cells
MD
## Solar output
Daily production
In [1]
daily = [4.2, 4.8, 5.1]
mean(daily)
Out [1]
4.7 kWh
Out [2]
Solar output, week 24

Daily production from the saved notebook.

E = P × t
Mon4.2Tue4.8Wed5.1
mean_daily = 4.7
# every saved line fits
Example previewSame cells. Same order. Paper-ready.

Or choose here

Drop a notebook anywhere on this page, or use this field. Jupyter notebook files only; the example below stays until you choose your own.

The file is read in this browser. Conversion and PDF creation happen on your device, so your notebook can stay private.

Check the page, not just the file name.

Inspect the saved cells below. The print window shows the final page breaks for your chosen paper size.

PDF preview
solar-analysis.ipynb
Go to PDF export
Sample notebook
Markdown cell

Solar output, week 24

Daily production from three saved measurements. Markdown, common equations, and tables stay in reading order.

E = P × t
Saved measurements
DayReadingkWh
MondayClear4.2
TuesdayClear4.8
WednesdayLight cloud5.1
Saved text outputmean_daily = 4.7
Saved daily solar output chart A static line chart with three ochre points rising from 4.2 to 5.1 kilowatt-hours. MONTUEWED 4.24.85.1
Saved static image, kept with its output cell.
# Long notebook lines wrap instead of disappearing past the page edge.
label = "................................................................................................"
mean_daily = round(sum(daily) / len(daily), 1)

From saved notebook to PDF.

  1. Select the file

    Choose a static .ipynb notebook. Your code and outputs stay on your device.

  2. Inspect the proof

    Check headings, equations, tables, images, and long code lines in the page preview.

  3. Save the PDF

    Pick A4 or Letter, include the content you need, then select Save as PDF in your print window.

What the printed page assumes

A4
210 × 297 mm (8.27 × 11.69 in)
Letter
8.5 × 11 in (216 × 279 mm)
Margins
15 mm on all four sides
Long lines
Wrap inside the page width; a 96-dot line still prints completely
Images and tables
Keep their saved shape and aspect ratio; a table row never splits across pages
Reading order
The order the cells were saved in, code cell followed by its saved outputs

Built for the notebook you already have.

The first version preserves what is saved in the file. It does not execute your notebook or pretend interactive output is a static document.

Kept in the PDF

  • Markdown and common equations
    Headings, prose, lists, and formulas in reading order.
  • Code and saved text
    Long lines wrap across the available page width.
  • Tables and static images
    Saved charts and image outputs remain with their cells.

Outside this version

  • Running code
    The converter reads saved cells; it does not execute them.
  • Interactive charts
    Live widgets and JavaScript plots need a static image saved first.
  • Complex publishing layout
    Custom publications, citations, and elaborate typesetting are not the goal.

Questions before you print

Why did my interactive chart disappear?

A widget needs a running notebook. Save a PNG, JPEG or static SVG representation with the output in Jupyter, save the notebook again, then reopen it here.

How do I hide code and keep the results?

Clear Include code and leave Include saved outputs selected. Markdown and raw cells stay visible.

Why is a linked picture missing?

Linked images could tell another site which file you opened. Embed the image as a notebook attachment or save it as a cell output.

Which paper size should I choose?

Use Letter (8.5 × 11 in) for a US assignment or A4 (210 × 297 mm) for an A4 handout. Match the size in the print window.

Will this run my analysis again?

The PDF uses the outputs already saved in the file. To update a result, run the cell in Jupyter and save before exporting.

How is this different from jupyter nbconvert?

This tool opens one saved format‑4 notebook in your browser. Use nbconvert for automated exports, custom templates, or a TeX publishing workflow.

Start a PDF report with code hidden