Reputation: 25703
Is there a way to disable all input cells in a cell group / section, in a way that is easily reversed later?
My aim is to keep a section of a notebook intact, but prevent it from being evaluated when "Evaluate Notebook" is selected in the front end.
There's Cell -> Cell properties -> Evaluatable, but using this would require me to select every input cell manually and change/restore this property. This is too much work. I have text/subsection/output cells interlaced.
Is there a better way using the UI? If not, is there a simple programmatic way?
EDIT: I found Alt-click, which selects all input cells in the notebook. Can this be restricted to a section / cell-group only?
Upvotes: 6
Views: 956
Reputation: 2506
Also, you could just set Evaluatable->False on the entire cell group you want to disable. The Text, Subsection, & Output cells in that group won't cause any problems.
Upvotes: 7