CellGroup

CellGroup[{cell1,cell2,}]

gives an open group of cells that can appear in a Wolfram System notebook.

CellGroup[{cell1,cell2,},1]

gives a cell group in which only the first cell is open.

CellGroup[{cell1,cell2,},-1]

gives a cell group in which only the last cell is open.

CellGroup[{cell1,cell2,},{i1,i2,}]

gives a cell group in which cells i1, i2, are open.

Details and Options

Examples

open allclose all

Basic Examples  (1)

Scope  (4)

You can nest one cell group within another:

Show only the first cell in the group:

Show only the second cell in the group:

Show only the first and last cells:

Possible Issues  (1)

By default, notebooks use automatic grouping that ignores CellGroup structures:

Wolfram Research (2007), CellGroup, Wolfram Language function, https://reference.wolfram.com/language/ref/CellGroup.html.

Text

Wolfram Research (2007), CellGroup, Wolfram Language function, https://reference.wolfram.com/language/ref/CellGroup.html.

CMS

Wolfram Language. 2007. "CellGroup." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CellGroup.html.

APA

Wolfram Language. (2007). CellGroup. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CellGroup.html

BibTeX

@misc{reference.wolfram_2024_cellgroup, author="Wolfram Research", title="{CellGroup}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/CellGroup.html}", note=[Accessed: 06-October-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_cellgroup, organization={Wolfram Research}, title={CellGroup}, year={2007}, url={https://reference.wolfram.com/language/ref/CellGroup.html}, note=[Accessed: 06-October-2024 ]}