It is sometimes convenient to use Manipulate
to set up global values which are to be used in the rest of the notebook. In such cases one can select and run the notebook up to the cell containing Manipulate
, use the dynamic interface, and subsequently select and run the remainder of the notebook.
But it would be great to evaluate the whole notebook with the "Evaluate Notebook"
menu item, and have the evaluation pause after the Manipulate
, then continue when the user clicks a button indicating that they are done manipulating.
A simple example (each line represents a separate cell):
Manipulate[amazingGraphics[y], {y, 0, 1}, Button["Done", global = y^2]]
(* evaluation pauses here until the button is clicked *)
doSomeStuff[global]
doSomeMoreStuff[]
etc[]
How can this be achieved?
Comments
Post a Comment