Skip to content

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

Open
@NumesSanguis

Description

@NumesSanguis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions