4
$\begingroup$

Suppose one creates a simple Manipulate in a notebook, with a single numerical control and no changing of the default appearance. Then there is a small + in the upper right, for accessing the bookmarks/autorun menu. One of the options in this menu is "Hide Controls". I would like to put the Manipulate in this state (i.e., hidden controls) when it is created, rather than interactively. Possible?

Note that this is not the same as an Invisible control. An invisible control cannot (afaict) be made visible interactively, whereas hidden controls appear if you click on the Manipulate display.

$\endgroup$
4
$\begingroup$

Update: New answer

Here is a not-any-less-obscure method, but it feels safer than the original one below:

Manipulate[x, {x, 0, 1}, Method -> {"ShowControls" -> False}]

Original answer

The appearance of controls is controlled by a local hidden (or internal) variable Typeset`show$$:

Manipulate[x, {x, 0, 1}, Initialization :> (Typeset`show$$ = False)]

Mathematica graphics

Note: Typeset`show = False should also work, due to the way Manipulate remaps variable names. Indeed it does, but it also creates the variable Typeset`show, which is probably not desirable.

$\endgroup$
  • $\begingroup$ Pretty obscure. But it works. $\endgroup$ – Alan Sep 26 '15 at 15:29

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.