Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Store and restore the open or closed status for all cell groups in a notebook
ResourceFunction["CellGroupingStatus"][nbobj] returns the grouping status for every cell group in the given notebook. | |
ResourceFunction["CellGroupingStatus"][nbobj,{cellobj1,cellobj2,…}] returns the grouping status for every cell group whose heading cell is one of the celli. | |
ResourceFunction["CellGroupingStatus"][nbobj,{cellobj1→status1,cellobj2→status2,…}] sets the grouping status for each cell group with the given heading cells. |
Get the cell grouping status for every cell group in the current notebook:
| In[1]:= |
| Out[1]= | ![]() |
Get the cell grouping status for the first cell in this notebook:
| In[2]:= |
| Out[2]= |
Set the cell grouping status for the first cell in this notebook:
| In[3]:= |
| Out[3]= |
Select a notebook:
| In[4]:= |
| Out[4]= |
Store the open/closed grouping status for every cell group in the notebook:
| In[5]:= |
After opening or closing cell groups in the notebook, restore the stored grouping status:
| In[6]:= |
This work is licensed under a Creative Commons Attribution 4.0 International License