Notebook diffs with nbdime

Hi!

I would love to get Jupyter notebook diffs to display in a rendered form, rather than plain json. Is there already some solutions for this? Otherwise, what are the customization options if I write some custom code? I notice in the documentation for external renderers that diffs are not mentioned. Any pointers on this?

Thanks, cheers

Erm… customizing the diffing is indeed not possible, as it poses unanswered questions such as “do we need to load the entire file to show the diff”, “how do we determine if this file uses custom diffing” or “how do we display that”.
At the moment, it is simply up to gitea to do whatever it wants.
Currently, the answers are simply “displaying the diff provided by git for text files”.

You can probably hack a custom template together that replaces the diffing for ipynbs with a rendered version of that notebook.
However, that is not a good idea.

1 Like

Thanks. So sad!

I guess I would have to make an external service that is able to check out two commits and serve the diff, then insert a link to that into PRs somehow.