Skip to content
📋

IPynb Formatter

Developer

Pretty-print a Jupyter notebook’s JSON with two-space indentation. Formatting preserves cell sources, outputs and metadata. Optionally sort cells by execution count when you intend to change their document order.

0
0
Input

Notebook limit: 10 MiB, 64 nesting levels and 100,000 JSON values.

Output

Pretty-print a Jupyter notebook’s JSON with two-space indentation. Formatting preserves cell sources, outputs and metadata.

See more about the IPynb Formatter

Optionally sort cells by execution count when you intend to change their document order.

Examples

Preserve notebook data

Paste or upload a version 4 .ipynb notebook. Leave Sort cells by execution count unchecked to preserve the original cell order, then copy or download the formatted JSON.

Limits: 10 MiB, 64 nesting levels and 100,000 JSON values. The tool checks notebook structure, not executable code or every detail of the official schema. Sorting moves cells without execution counts to the end. It does not execute cells or clear outputs.

Key features

  • Version 4 notebook checks
  • Optional execution-count sorting
  • Copy or download formatted JSON

Quick answers for IPynb Formatter

What does this tool produce?
Pretty-print a Jupyter notebook’s JSON with two-space indentation. Formatting preserves cell sources, outputs and metadata. Optionally sort cells by execution count when you intend to change their document order.
What are the limits and important options?
Limits: 10 MiB, 64 nesting levels and 100,000 JSON values. The tool checks notebook structure, not executable code or every detail of the official schema. Sorting moves cells without execution counts to the end. It does not execute cells or clear outputs.