<div dir="ltr"><div>Another option to consider is <br><br>[2b]  Creating a per-notebook/directory subdirectory that handles all such extra data/metadata, similar to .git.<br><br></div>This subdirectory is easily excluded from version control, organizes IPython content into a single location on the file system, and lives close to the original content.  <br><div><div><br></div><div>Thanks for at least considering this.  The clashing signatures cause a lot of merge conflicts that would otherwise be easily avoided.<br><br>A <br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 15, 2014 at 6:20 PM, Thomas Kluyver <span dir="ltr"><<a href="mailto:takowl@gmail.com" target="_blank">takowl@gmail.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Min and I were just talking to Aron Ahmadia and Chris Kees. We covered several topics, but one of the more straightforward things we discussed was the problem that storing signatures in the notebook gives for version control - because any two changes will make the signature conflict, even if the changes are at opposite ends of the notebook.<br><br></div>We possibly shouldn't try to rework this before 3.0, but I started thinking about alternatives, and wanted to put a couple out for discussion:<br><br></div>1. Store signatures next to notebooks - maybe a .ipynb.sig file, like you sometimes see checksum files next to downloads. This has the advantage that to move the notebook along with its trust, you can just move those two files together, but the disadvantage that it clutters up your working directory.<br></div>2. An extra subdirectory, like we already use for checkpoints, but for signatures. Less clutter, but more awkward to move a notebook and its associated signature together.<br></div>3. A per-user database storing hashes of all trusted notebooks. Checking if a notebook is trusted then becomes: hash it, and check whether that hash is in the database. The notebook's location on the filesystem is irrelevant. This may be troublesome for people who sync their IPython directory across multiple computers, or have home directories on an NFS mount, though.<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">Thomas<br></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></div>