Convert IPYNB to JPG
Turn IPYNB files into JPEG 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
Your notebook, one JPG per page.Code, notes and outputs are typeset onto pages, and each page becomes its own image.
What you get
Each page of the typeset notebook becomes one JPG, so a notebook gives you one or more files. Pages are A4 at 150 dpi and quality 90 unless you ask for something else.
Markdown cells appear as formatted text. Code cells appear as code, with their outputs below them, including plots and HTML tables. Text is set in Libertinus Serif and code in DejaVu Sans Mono.
What it leaves out
Raw cells are left out. They do not appear on any page.
JPG is lossy, so some detail is given up when each page is saved. JPG also has no transparency.
Options for the pages
Set Page size to Letter for North American paper, or to auto so each page takes the size of its own content. Set Pages to convert only some pages, for example 1-3,7.
Set Resolution (dpi) higher for sharper pages. Around 300 is the usual choice for print, but the files grow. Quality works the same way: above 90 the file grows quickly while the picture barely changes.
Set Width (px) to give the result an exact width. The height follows the aspect ratio unless you also give it, in which case the picture can be stretched. To change a finished image, try resize JPG.
IPYNB and JPG.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 · quality
Quality
How much detail lossy compression keeps. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.
1 to 100 default 90 - 05 · 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
JPEG
Lossy photo compression that every device and browser opens. Small files, no transparency.
- Extensions
- .jpg .jpeg .jfif .jpe
- MIME type
- image
/jpeg - Kind
- Images
In your code.The same IPYNB to JPG conversion through the API, for your app or your agent.
$ cv convert report.ipynb report/ --to jpeg$ cv convert report.ipynb report/ --to jpegQuestions.What people ask about IPYNB to JPG.
No. Each page becomes one JPG, so a notebook can give you several files.
Yes. Outputs appear below their code cells, including plots and HTML tables.
They are left out of the result.
Yes. Set Pages to single pages and ranges separated by commas, such as 1-3,7. Every page is read when it is left out.