I’m often wanting to work in a mode where my changes to a notebook would not be saved in that notebook.
- testing a hypothesis I have on something, not realizing that I’m working on a notebook that’s not mine (in particular in a team).
- using a notebook that I developed as a generic tool for datasets, and fiddling with parameters and inputs to adjust them on my current dataset’s peculiarities.
- using a notebook that has an example dataset, and replacing it with my own data.
In these cases it might be useful to be able to “lock” a notebook in a read-only state, so that my changes to it are either just local (as when I work on someone else’s notebook not in my team), or at least force me to remember to do a fork.
I know I can always roll-back my changes, but it feels like the notebook is in a dirty state in between. Also when working in a team, it might create problems.
(Of course there’s a solution which is to fork before you start anything. But it’s not as comfortable as what happens on other people’s notebooks, where you can fiddle with the contents without consequence.)