nbdime icon indicating copy to clipboard operation
nbdime copied to clipboard

Something in between process and ignore: summaries?

Open leopd opened this issue 4 years ago • 1 comments

Maybe a config question, maybe a feature request.

I'd like nbdiff to let me know if metadata has changed or not (and maybe how many cells) without giving me the full details of all the differences. Is this possible somehow maybe with log levels? I'd like to get verbose about changes to source & outputs, and a quick summary about metadata changed, like just the number of cells that changed.

A bit more detail: I setup my git diff as

[diff "jupyternotebook"]
    command = git-nbdiffdriver diff --ignore-metadata

because I don't care about keeping metadata changes in version control. But this makes it kinda confusing, because at a file level git tells me the .ipynb files have changed, but when I do a diff it says nothing's changed - I get it, but it could be clearer.

Thanks!

leopd avatar Jun 29 '20 17:06 leopd

This makes sense, and it should be possible with a reasonably small amount of work. It would need to not ignore metadata during the actual diffing process, and instead only modify the printing behavior (in prettryprint).

vidartf avatar Jul 10 '20 09:07 vidartf