Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Temporarily disabling all input cells in a section of a notebook

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?

like image 495
Szabolcs Avatar asked Nov 02 '11 17:11

Szabolcs


1 Answers

  • Option-click to select all Input cells.
  • Command-click twice (once to select, once to deselect) each cell group you don't want to include.

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.

like image 94
ragfield Avatar answered Oct 03 '22 02:10

ragfield