[IPython-dev] Notebook diffing tool by Matthew

Brian Granger ellisonbg at gmail.com
Sun Nov 18 13:13:06 EST 2012


Let's create an issue to track these efforts....


On Sun, Nov 18, 2012 at 3:15 AM, Fernando Perez <fperez.net at gmail.com>wrote:

> Hi folks,
>
> Matthew just wrote up a notebook-diff tool.  Eventually we'll want
> this kind of capability nicely integrated into nbconvert, but in the
> meantime here it is:
>
> https://github.com/fperez/nipy-notebooks/blob/master/notebook_diff.py
>
> Does crude unified diff on notebooks after stripping output and input
> line numbers.  You've got to search through the text to see the bit to
> which the diff refers, but at least it gives an idea...
>
> Actually piping this through wdiff is particularly nice:
>
> ./notebook_diff.py exploring_r_formula.ipynb jbs_r_formula.ipynb | wdiff
> -d -a
>
>
> Cheers,
>
> f
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>



-- 
Brian E. Granger
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu and ellisonbg at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20121118/0b273b7b/attachment.html>


More information about the IPython-dev mailing list