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?

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

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.

|improve this answer|||||
  • 1
    $\begingroup$ 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. $\endgroup$ – matheorem Oct 22 '15 at 1:17
  • $\begingroup$ I have to write a comment to indicate that "hey! there is a cell hiding here! check it out!" :) $\endgroup$ – matheorem Oct 22 '15 at 1:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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