Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround for saving notebooks using a command #7627

Closed
jlmanaloto opened this issue Dec 14, 2019 · 2 comments
Closed

Workaround for saving notebooks using a command #7627

jlmanaloto opened this issue Dec 14, 2019 · 2 comments
Labels
status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.

Comments

@jlmanaloto
Copy link

Jupyterlab doesn't seem to support saving a notebook when the following is run:

from IPython.display import display, Javascript
display(Javascript('IPython.notebook.save_checkpoint();'))

Are there any workaround in order to trigger a save after running a cell?

@jasongrout
Copy link
Contributor

Jupyterlab doesn't seem to support saving a notebook when the following is run:

from IPython.display import display, Javascript
display(Javascript('IPython.notebook.save_checkpoint();'))

Correct, that javascript code is very specific to the classic notebook, and won't work in other frontends.

Are there any workaround in order to trigger a save after running a cell?

The way to do this in JupyterLab is to write a jupyterlab extension, which could listen to cell executions and trigger a save.

@jlmanaloto
Copy link
Author

@jasongrout alright thanks!

@lock lock bot added the status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label Jan 15, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jan 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Projects
None yet
Development

No branches or pull requests

2 participants