[Solved]-Does Jupyter support 'read-only' notebooks?


The notebook file can have its write permissions unset:

$ chmod -w notebook.ipynb

The notebook is still interactive, but the notebook file will not change.

Save symbol disabled with title "This notebook is read-only"


There is also an notebook extension, Freeze which allows to lock (allow execution but not edit cell contents) or freeze (disables editing and execution) individual code cells or markdown blocks. This is important as order of execution for code cells matters while running notebook. This presentation at JupyterCon has more details on it.



just try eval this line in your browser console:

Jupyter.notebook.writable = false;

this will make current jupyter notebook file not writable, so any changes would not be allowed.

Leave a comment