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

How to disable autosave of a single notebook / notebooks in a folder #6481

Open
NumesSanguis opened this issue Jun 6, 2019 · 2 comments
Open
Milestone

Comments

@NumesSanguis
Copy link

I'm using JupyterLab in combination with JupyterHub.

Situation

I have set-up a read-only shared folder by following: http://tljh.jupyter.org/en/latest/howto/content/share-data.html
and then changed the permission of this shared folder that other users can only read/execute, but not write.
Users can now open the notebook, execute and even change it in memory. Saving however will trigger a warning (File Save Error for ... Permission denied, which is intended.

The problem is that if users have made changes in memory, the notebook tries to autosave, which fails due to not having writing permission. It's very annoying for a user to close the pop-error every x seconds.

Question

  1. How do I turn-off autosave for all notebooks in a certain folder (prevent autosave in a read-only folder)
  2. If 1 is not possible, how do I turn-off autosave of a single notebook?

Possible solutions

  1. In the menu --> Settings --> Autosave Documents (turn-off)
    Problem: The user might forget to turn it back on and lose data, because he/she expects her notebooks to autosave.
  2. Some code block that can added as the first cell in a notebook that says turn-off autosave for this notebook.
    So far haven't been able to find such code.
@berkser
Copy link

berkser commented Jan 16, 2020

Any updates on this?

@jasongrout
Copy link
Contributor

No, I don't think anyone has worked on this. If anyone starts working on this, please post here to let the community and other potential collaborators know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants