4 ms·
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
by massaman_yams 8y 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 https://gist.github.com/minrk/6176788
- tejtm 8y agoThanks will give this a try
- massaman_yams 8y agocaveat: 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-notebooks-play-nice/ http://timstaley.co.uk/posts/making-git-and-jupyter-notebook...
- makmanalp 8y agoSee also: nbdime to diff / merge notebooks https://github.com/jupyter/nbdime https://github.com/jupyter/nbdime