# Is there a way to hide input cells, that have no output?

I can easily hide output cells, or hide the input cell if it produces output (just double click the side bracket for both).

My Question is how can I hide input cells that have no output?

Examples

ToTeX[equation_] :=
StringReplace[repRules][ToString[TeXForm[equation]]];
PrincipalMinorsStep1[mat_] :=
Diagonal[Map[Reverse, Minors[mat, #], {0, 1}]] & /@ {1, 2} ;
PrincipalMinors[mat_] := PrincipalMinorsStep1[mat][[2, All]];


I would like to hide this block most of the time as I run it once upon initialization then never again.

• Put it in a section. Put a section after it. – b3m2a1 Mar 21 '18 at 19:43
• Could you clarify what you mean? – AzJ Mar 21 '18 at 19:43
• Read this about half-way down – b3m2a1 Mar 21 '18 at 19:45
• Still confused. – AzJ Mar 21 '18 at 19:48

## 1 Answer

In your notebook make a section cell before your initialization code:

Then double-click on the cell bracket of the first section group:

Now it's hidden.

• That makes more sense, thank you. – AzJ Mar 21 '18 at 19:52
• How do you create subcells? – AzJ Mar 21 '18 at 19:56
• Same way as usual? If you mean section cells, you can read about that here – b3m2a1 Mar 21 '18 at 20:13
• I have never created subcells before. Whenever I insert a new cell in never creates a subcell – AzJ Mar 21 '18 at 20:18
• @AzJ I'm not entirely sure what your problem is. It should be straightforward. But the documentation on this is more than sufficient if you just google "Mathematica make new section cell". – b3m2a1 Mar 21 '18 at 20:19