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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.