Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to close initialization cell in Notebook?

In my Notebook I have a fairly large initialization cell. How to make it close-able? I mean how can I roll up this cell in one line with ability to unroll it back?

like image 581
Alexey Popkov Avatar asked Mar 01 '11 09:03

Alexey Popkov


People also ask

How to collapse a cell in Mathematica?

Cell ▶ Grouping ▶ Open/Close Group toggles a cell group between open and closed. Closing a group collapses all cells in the group so that only the head cell is visible.

What is initialization cell?

Initialization Cell. makes a cell auto-evaluate whenever the notebook is opened and the kernel is launched.


1 Answers

The classic solution is to put the initialization cell(s) into a Section (Alt+4) of their own, titled "Initialization." This Section goes either at the start or end of your notebook.

To hide the contents, you close the Section (double click its cell bracket at right of window).

like image 199
Andrew Moylan Avatar answered Oct 20 '22 20:10

Andrew Moylan