<div dir="ltr"><div><div>Very interesting idea! Thanks for working on this, Thomas! (And on everything else. ;) )<br><br>Would you favour this approach over something like nbdiff [1,2]? Disclaimer: I haven't tried nbdiff yet, just stumbled upon it and thought it looked promising. But I'm wondering what sort of future direction you core devs have in mind for dealing with "semantic" diffing/merging of notebooks.<br><br></div>Cheers,<br></div>Max<br><div><div><br>[1] <a href="http://nbdiff.org/">http://nbdiff.org/</a><br>[2] <a href="https://github.com/tarmstrong/nbdiff">https://github.com/tarmstrong/nbdiff</a><br><div><br><br><div><div class="gmail_extra"><div class="gmail_quote">2015-03-05 19:36 GMT+00:00 Thomas Kluyver <span dir="ltr"><<a href="mailto:takowl@gmail.com" target="_blank">takowl@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I've just completed a rough prototype of a concept we've been calling 'nbexplode'. If you've wrestled with merge conflicts in notebooks kept in text-based VCSs, you might like to investigate it.<br><br><a href="https://github.com/takluyver/nbexplode/" target="_blank">https://github.com/takluyver/nbexplode/</a><br><br></div><div>Since current VCSs don't understand any structure within a file (beyond lines), the idea is to let the VCS know about the structure of a notebook by breaking it up into many files for separate cells and outputs. The VCS should then be smarter about merging separate changes. When you check out an exploded notebook, you can recombine it into a single .ipynb file to work with.<br><br></div><div>This is still sub-optimal, because filesystems (and therefore VCSs) have no notion of an ordered sequence. And it's probably more unwieldy for viewing diffs, because cells appear out of order.<span class=""><font color="#888888"><br><br></font></span></div><span class=""><font color="#888888"><div>Thomas<br></div></font></span></div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div></div></div></div></div></div>