nbdime and Notebook menu (bundler?) options - diff between current notebook and checkpointed version

35 views
Skip to first unread message

Tony Hirst

unread,
Apr 11, 2017, 12:53:17 PM4/11/17
to Project Jupyter
Having just come across support for custom bundler extensions (not sure I get what "deploy" links are for?) and put together an extension that downloads the ipynb and html versions of a notebook in the same zip package) I wondered whether that mechanism could be used to launch an nbdime instance that would do a diff between the current version of the notebook and the checkpointed version (perhaps using handler.redirect(redirect_link) to launch a link from nbdime mynotebook.ipynb mynotebook.checkpointed.ipynb ).

So I was wondering - how do I get the absolute path to a checkpointed version of the current file, and can I get hold of a URL from nbdime. (I also need to keep track of port numbers - I'm running services inside a vagrant provisioned VM with portforwarding in place, so need to know/set the nbdime port)

--tony

Tony Hirst

unread,
Apr 11, 2017, 1:41:57 PM4/11/17
to Project Jupyter
Note to self on the above - could we do a "track changes" nbextension toolbar button or some other menu extension, to implement track changes between current notebook and checkpointed version, closing current notebook and opening a new tracked changes notebook, and/or maybe using styling ideas from nbconvert?

Vidar Tonaas Fauske

unread,
Apr 18, 2017, 5:02:08 AM4/18/17
to jup...@googlegroups.com
I cannot really help you with the other bits, but for nbdime you can
set the port/ip of nbdime with arguments to the command (`--ip` and
`--port`). You should be able to make the URL deterministic that way.


<br>
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jupyter+u...@googlegroups.com.
> To post to this group, send email to jup...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jupyter/62acab63-8621-4d34-8af8-31b16b6cff71%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages