Development Environment | ![]() ![]() |
Group Cells Command
The Group Cells command converts the input cells in the selection into a single multiline input cell called a cell group. You evaluate a cell group using the Evaluate Cell command. When you evaluate a cell group, all of its output follows the group and appears in a single output cell.
Action
If you include text in the selection, Notebook moves it after the cell group. However, if text precedes the first input cell in the group, the text will remain before the group.
If you include output cells in the selection, Notebook deletes them. If you select all or part of an output cell before selecting this command, Notebook includes its input cell in the cell group.
If the first line in the cell group is an autoinit cell, the entire group acts as a sequence of autoinit cells. Otherwise, the group acts as a sequence of input cells.You can convert an entire cell group to an autoinit cell with the Define AutoInit Cell command.
See Also
For more information, see Defining Cell Groups. For information about converting a cell group to individual input cells, see the description of the Ungroup Cells Command.
![]() | Evaluate M-Book Command | Hide Cell Markers Command | ![]() |