[IPython-dev] Storing signatures outside the notebook
Aron Ahmadia
aron at ahmadia.net
Mon Dec 15 21:43:49 EST 2014
Another option to consider is
[2b] Creating a per-notebook/directory subdirectory that handles all such
extra data/metadata, similar to .git.
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.
Thanks for at least considering this. The clashing signatures cause a lot
of merge conflicts that would otherwise be easily avoided.
A
On Mon, Dec 15, 2014 at 6:20 PM, Thomas Kluyver <takowl at gmail.com> wrote:
>
> 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.
>
> 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:
>
> 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.
> 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.
> 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.
>
> Thomas
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20141215/9606103d/attachment.html>
More information about the IPython-dev
mailing list