3 ms·
Until there is a meaningful `git diff` for jupyter notebooks I can't see them being a step in the right direction for anything but transient experiments (and of
by tejtm 8y ago
Until there is a meaningful `git diff` for jupyter notebooks I can't see them being a step in the right direction for anything but transient experiments (and of course what Jypyter is great at; communication, documentation, low barriers etc.)
- massaman_yams 8y agoThis 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
- PurpleRamen 8y agoSomething I always wondered about: why are Jupyter Notebooks JSON-Files and not directories where each cell and result has a coresponding single file? Would also make managing attatchments and versionscontrol per notebook quite easy.