Install the nbconvert package, though you probably already have it if you are using jupyter. Put the nb2md
script from below in your path and make it executable (chmod u+x
).
- Add the following to your
~/.gitattributes
file*.ipynb diff=nb2md
- Run
git config --global diff.nb2md.textconv nb2md
- There is no third step. Go get some 🍦 instead.
- Edit
.gitattributes
in the top-level directory of your project and add*.ipynb diff=nb2md
- add the following to your project's
.git/config
[diff "nb2md"]
textconv = nb2md
- There is no third step. Go get some 🍦 instead.