Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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
up vote 5 down vote accepted

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.

share|improve this answer
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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.