HomePhorge

When rendering Jupyter notebook diffs, split code inputs into individual blocks

Description

When rendering Jupyter notebook diffs, split code inputs into individual blocks

Summary:
Ref T13425. Currently, code inputs and all outputs are grouped into a single block. This is fine for display notebooks but not great for diffing notebooks.

Instead, split source code input into individual lines with one line per block, and each output into its own block.

This allows you to leave actual line-by-line inlines on source, and comment on outputs individually.

Test Plan: {F6888583}

Maniphest Tasks: T13425

Differential Revision: https://secure.phabricator.com/D20840

Details

Provenance
epriestleyAuthored on Sep 25 2019, 7:39 PM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rP884cd74cc4a5: In prose diffs, use hash-and-diff for coarse "level 0" diffing to scale better
Branches
Unknown
Tags
Unknown

Event Timeline