# Hide both input cell and output cell

You can double-click the right gutter of a input cell to hide a corresponding output cell or double-click the gutter of the output cell to hide the input cell.

I would like to hide both the input and the output cell. Is this possible to do within the GUI?

-
Yes: select both cells, then Menu > Cell > Cell Properties and un-check Open. – Mr.Wizard Aug 14 '13 at 20:22
@Mr.Wizard Why not make that an answer? – Tyilo Aug 14 '13 at 20:27
Alright, I shall. – Mr.Wizard Aug 14 '13 at 20:41

## 1 Answer

Yes, you can hide both Input and Output cells, as well as any other type, by setting the Cell expression option CellOpen to False. This is most frequently done by:

1. Selecting the entire cell or cells using the cell brackets
2. Following the Menu path: Cell > Cell Properties and un-checking Open.

It can also be done using the Option Inspector (Shift+Ctrl+O on Windows), or programmatically with e.g. SelectionMove and SetOptions.

In addition to closing the cells you can also collapse the cell group as described in your question or by using Ctrl+' to produce a very compact structure with only a minimal bracket remaining for selection.

-
This is useful. But it will be much more useful if the closed cell leave some information of cell (at least the first line of the cell), so users can know what is this closed cell contain. But now it is just narrow blank line, hard to notice. – matheorem Oct 22 '15 at 1:17
I have to write a comment to indicate that "hey! there is a cell hiding here! check it out!" :) – matheorem Oct 22 '15 at 1:19