Timeline for How to make DynamicModule work without an extra ENTER
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 24, 2013 at 16:22 | comment | added | Albert Retey |
@Nasser: I just have seen your comments -- and believe that Sjoerd has clarified most of what remained unclear. About the names of the local variables: I think that there are indeed two names generated for plot : During the kernel-evaluation plot will be localized, with a naming like plot$9944 . Then when it is displayed, the FrontEnd takes over the control about variables local to DynamicModule and plot gets yet another name, something like FE'plot$$137. I don't think that this means you are using a global variable anywhere, though.
|
|
Feb 24, 2013 at 13:29 | vote | accept | Nasser | ||
Feb 24, 2013 at 13:03 | comment | added | Sjoerd C. de Vries |
@nasser How about this sentence: When DynamicModule is first evaluated, initial assignments for local variables are made during the evaluation. Any setting for the Initialization option is evaluated only when the output of DynamicModule is displayed. So, as the docs already stated earlier, variables are localized and initialized, the body is evaluated. It will be displayed after that. That's when the Initialization code will execute.
|
|
Feb 24, 2013 at 11:10 | history | answered | Albert Retey | CC BY-SA 3.0 |