Skip to content
Jellykit

Jupyter Notebook Viewer

Read a Jupyter .ipynb notebook as a page: its Markdown text, code and saved outputs, including tables, charts and errors, without running it.

  • Runs on your device
Loading tool

About Jupyter Notebook Viewer

A notebook sent as an .ipynb file is JSON that only reads well inside Jupyter. This viewer lays it out as it would look there: Markdown cells as formatted text, code cells with their execution numbers, and the outputs saved with them, from printed text and tables to charts and error tracebacks.

Nothing in the notebook is run, so no Python or kernel is needed. HTML outputs are sanitised, images are shown only when they are embedded in the file, and pictures the notebook links from the web are not fetched. You can hide the code or the outputs, and download all the code cells as one script.

How it works

  1. The file is parsed as JSON and read as nbformat 4, or the older nbformat 3 with worksheets.
  2. Each saved result is shown in the richest safe form it carries: an embedded image, then HTML, Markdown, LaTeX source or plain text. JavaScript and widget outputs are named but never run.
  3. Markdown is rendered with GitHub extensions; images attached to a cell are shown from the notebook itself.
  4. All HTML has links to outside images and media removed, then passes through a sanitiser that strips scripts, styles, forms and embedded frames.

Questions

Does the viewer run the code?

No. It shows the outputs that were saved in the file when the notebook was last run. If a notebook was saved without outputs, only the code is shown.

Why are some images missing?

Images that a notebook links from the web are deliberately not loaded, so opening the file tells no other site about it; a placeholder with the image’s description stands in. Images embedded in the notebook, such as saved plots, are shown.

Is LaTeX math rendered?

No. Formulas written in Markdown cells appear as their LaTeX source, and LaTeX outputs as text.

How large a notebook can it open?

Up to 100 MB. Very long printed outputs are cut at 100,000 characters each, and cells are shown 150 at a time.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.