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?


ToTeX[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.

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

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.

  • $\begingroup$ That makes more sense, thank you. $\endgroup$ – AzJ Mar 21 '18 at 19:52
  • $\begingroup$ How do you create subcells? $\endgroup$ – AzJ Mar 21 '18 at 19:56
  • 1
    $\begingroup$ Same way as usual? If you mean section cells, you can read about that here $\endgroup$ – b3m2a1 Mar 21 '18 at 20:13
  • $\begingroup$ I have never created subcells before. Whenever I insert a new cell in never creates a subcell $\endgroup$ – AzJ Mar 21 '18 at 20:18
  • 1
    $\begingroup$ @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". $\endgroup$ – b3m2a1 Mar 21 '18 at 20: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.