!date
Step 1, use nbconvert to turn ipynb files into html.
cd ../nbconvert/
!./nbconvert.py --format html nbdt1.ipynb
!./nbconvert.py --format html nbdt2.ipynb
Step 2, use html diff.py to generate html diff
!wget http://www.aaronsw.com/2002/diff/diff.py
!python diff.py nbdt1.html nbdt2.html >nbdt_diff.html
from IPython.core.display import HTML
HTML(filename='nbdt_diff.html')
This could use a ton of work on the css, obviously, but it gets the job done for now.
E.g. adding the following makes the prompts not overlap the input cells as badly:
<style type="text/css">
div.prompt {width: 22ex;}
</style>