Skip to content

Cell diffs show context, outputs, directives, and word-level changes - #1645

Merged
jph00 merged 1 commit into
mainfrom
pr/cell-diffs-show-context-outputs-directives-and
Sep 9, 2026
Merged

Cell diffs show context, outputs, directives, and word-level changes#1645
jph00 merged 1 commit into
mainfrom
pr/cell-diffs-show-context-outputs-directives-and

Conversation

@jph00

@jph00 jph00 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

The diff driver and nbdev-diff show one unchanged cell either side of each change, a marker for skipped cells, and each changed cell's stored output after its diff. Similar line pairs merge into one ! line in git --word-diff form. Headers carry the cell's nbdev directives in brackets, and truncated lines end with the number of characters cut. See the Rendering section of 19_diff.ipynb.

render_diff takes {id: cell} dicts rather than {id: source}. Requires fastcore 2.2.23.

@jph00 jph00 added the enhancement New feature or request label Sep 9, 2026
@jph00
jph00 merged commit 6e012e7 into main Sep 9, 2026
@jph00
jph00 deleted the pr/cell-diffs-show-context-outputs-directives-and branch September 9, 2026 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant