Hacker News new | ask | show | jobs
by massaman_yams 2898 days ago
This is effectively a solved problem, but it does require some tooling. Pre-commit hooks can strip things like execution count and/or outputs from the notebook: https://gist.github.com/minrk/6176788
2 comments

See also: nbdime to diff / merge notebooks https://github.com/jupyter/nbdime
Thanks will give this a try
caveat: I haven't tested this particular one, it was just the first thing I found in a quick search.

This post has more detail on a faster approach using jq: http://timstaley.co.uk/posts/making-git-and-jupyter-notebook...