Convert IPYNB to PNG
Turn IPYNB files into PNG files. Typeset in Libertinus Serif with code in DejaVu Sans Mono on A4 pages unless page_size says letter, with Markdown cells as formatted text, code cells as code and their outputs below them, including plots and HTML tables.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop IPYNB files on the dialor turn it to pick what to do
A notebook as one PNG per page.Markdown, code and outputs are typeset on pages, and each page becomes an image.
What you get
One or more PNG files, one for each page of the typeset notebook. Pages are A4 and drawn at 150 dpi unless you choose otherwise.
Markdown cells appear as formatted text in Libertinus Serif. Code cells appear as code in DejaVu Sans Mono, with their outputs below them. Plots and HTML tables in the outputs are included.
What it leaves out
Raw cells are left out. Nothing from them appears on any page.
Size and pages
Set Page size to Letter for 8.5 × 11 in pages. Choose auto and each page takes the size of its own content.
Set Resolution (dpi) to a value from 36 to 600. Higher is sharper and makes a bigger file. Around 150 reads well on screen, and 300 is the usual choice for print.
Set Width (px) to give the result an exact width from 1 to 20000 pixels. The height follows the aspect ratio unless you also give it, in which case the picture can be stretched.
Set Pages to convert only some pages, for example 1-3,7. Every page is read when it is left out.
If you want to change the images afterward, resize PNG is available.
IPYNB and PNG.What each format is, and the options this conversion takes.
- 01 · dpi
Resolution (dpi)
How many pixels each inch of the page becomes when it is drawn as a picture. Higher is sharper and makes a bigger file. Around 150 reads well on screen, and 300 is the usual choice for print.
36 to 600 default 150 - 02 · page_size
Page size
The size of the pages written. A4 is the standard in most of the world and Letter in North America.
a4210 × 297 mm.letter8.5 × 11 in.autoEach page takes the size of its own content.
- 03 · pages
Pages
Converts only some pages. Write single pages and ranges separated by commas, such as 1-3,7. Every page is read when it is left out.
- 04 · width
Width (px)
The exact width of the result in pixels. The height follows the aspect ratio unless it is also given, in which case the picture can be stretched.
1 to 20000
The formats
Jupyter Notebook
Jupyter notebooks. Code cells, their outputs and Markdown notes in one JSON file.
- Extensions
- .ipynb
- MIME type
- application
/x -ipynb +json - Kind
- Text and data
PNG
Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.
- Extensions
- .png
- MIME type
- image
/png - Kind
- Images
In your code.The same IPYNB to PNG conversion through the API, for your app or your agent.
$ cv convert report.ipynb report/ --to png$ cv convert report.ipynb report/ --to pngQuestions.What people ask about IPYNB to PNG.
One PNG for each page of the typeset notebook, so a notebook that runs over several pages gives several files.
Yes. Outputs appear below their code cells, including plots and HTML tables.
Yes. Set Page size to Letter. The default is A4.
Yes. Set Pages to single pages and ranges separated by commas, such as 1-3,7.