I know that I can select individual evaluatable cells and disable their Open property (through Cell > Cell Properties), but is there a simple way to toggle the Open status of all evaluatable cells?
Asked
Active
Viewed 182 times
5
kjo
- 11,717
- 1
- 30
- 89
-
2This, this and this may be helpful. – bobthechemist Jul 25 '13 at 22:44
1 Answers
4
Something like this? (V9 and after only, because of Cells.)
toggleCellOpen[nb_: SelectedNotebook[]] :=
(CurrentValue[#, CellOpen] = Not@CurrentValue[#, CellOpen]) & /@
Select[Cells[], CurrentValue[#, Evaluatable] &]
Michael E2
- 235,386
- 17
- 334
- 747