[IPython-dev] Notebook diffing tool by Matthew

Brian Granger ellisonbg@gmail....
Sun Nov 18 12:13:06 CST 2012


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


On Sun, Nov 18, 2012 at 3:15 AM, Fernando Perez <fperez.net@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@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>



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


More information about the IPython-dev mailing list