I'm using an initialization cell to import a lot of data:
data = Import[myFiles];
and then I use a custom function to display this data with Manipulate:
Manipulate[customFunction[data,variable],{variable,{0,1}}]
I have to keep these two commands in two seperate cells, because importing the data in customFunction each time I manipulate variable would take a lot of time.
The problem is, when I start my notebook, Manipulate is evaluated automatically and sends a lot of error messages, because data is not defined. I know it might go against what Manipulate is made for, but is there a way to prevent Manipulate from being evaluated until I import my data for the first time?
SaveDefinitions->True? – b.gates.you.know.what Apr 04 '13 at 08:50Manipulateis evaluated right away. – Sulli Apr 04 '13 at 09:24data = Import[myFiles];once and then again only ifmyFileschange? Is there a bad side-effect of saving a lot of information withSaveDefinitions -> True(in terms of time for the notebook to load for example)? – Sulli Apr 04 '13 at 09:27Manipulatewill remember the last state it was in, including all controls. As to performance issues, you just have to try and see. – b.gates.you.know.what Apr 04 '13 at 09:35"ToggleDynamicUpdating"perhaps ? – b.gates.you.know.what Apr 16 '16 at 15:38