IPynb Formatter
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.
Notebook limit: 10 MiB, 64 nesting levels and 100,000 JSON values.
Pretty-print a Jupyter notebook’s JSON with two-space indentation. Formatting preserves cell sources, outputs and metadata.
See moreSee less 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