I have started using IPython notebook quite a bit for writing up draft sections for my dissertation. However, given two versions of a draft (i.e., notebook), I would like to be able to generate some form of diff output to show what has changed. Does anyone know if this is currently possible, either through IPython notebook itself, or through some extension?
Notebook diff can be generated with nbdime. After installing nbdime you can run following to see notebook diff in browser:
> nbdiff-web notebook_1.ipynb notebook_2.ipynb
If you are using Github for version control you can use ReviewNB for Notebook diff. It lets you login via Github and browse commits/pull-request diff on your repo. You'll see visual diff like below:
1- VS Code has added to its Aug 2020 version see here
2- try nbdime
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With