Is there a Jupyter Notebook server API that allows for saving opened notebooks with changes?

22 views
Skip to first unread message

Young Park

unread,
Aug 26, 2017, 3:29:58 PM8/26/17
to Project Jupyter
Hi,

I have been looking into the Jupyter Notebook server APIs to programmatically trigger saves through making calls to the Jupyter Notebook server APIs, but to no avail.
I tried using the /api/contents/<path>/<file>/checkpoints API and although it did create checkpoints, it did not contain the changes that I had made on the open notebook.
Is there a way to trigger a save, the same way clicking on the save button from inside an open notebook handles saving unsaved changes?

Thanks!
Young

MinRK

unread,
Aug 26, 2017, 8:41:40 PM8/26/17
to Project Jupyter

To save the notebook programmatically, you need to call Jupyter.notebook.save_notebook(). Since the notebook document lives entirely in the browser, its contents must be sent as part of the request in order to save them.

-Min


--
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+unsubscribe@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/cf34560f-5ae2-45c7-a878-ab7a964f1971%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages