Linked Questions

258 votes
9 answers
19k views

What are the use cases for different scoping constructs?

Mathematica includes three functions that I know of which can be used to effectively (if not actually) define a variable and give it a value within a local scope: ...
David Z's user avatar
  • 4,921
19 votes
3 answers
762 views

What does None mean in a control specification for Manipulate?

I am now struggling to understand code that contains the following (simplified) Manipulate structure. ...
David's user avatar
  • 14.9k
7 votes
3 answers
975 views

Unexpected Setter Bar Behavior when Manipulate Nested in Dynamic Module

Consider this code: DynamicModule[{x, y}, x[t_] := t^2 + 5; y[t_] := t^3 + 5; Manipulate[Plot[fcn[t], {t, -5, 5}], {fcn, {x -> "Square", y -> "Cubic"}}]] ...
tjm167us's user avatar
  • 993
13 votes
2 answers
407 views

Working with DynamicModule: Tracking the progress of Initialization

How to track Initialization step by step? Any tricky solution is ok. One condition, x should be ...
Kuba's user avatar
  • 137k
8 votes
2 answers
854 views

Manipulate in Manipulate

Question 63982 (Altering values in Manipulate with dynamically generated controls) got a very interesting answer from @belisarius, in which he used a Manipulate ...
Fred Simons's user avatar
  • 10.2k
8 votes
2 answers
181 views

Question about scoping data in a multi-level Manipulate construction

Background: In a module containing an outer / inner manipulate I select the key of data with a dropdownlist in the outer manipulate. Data is read and displayed in the inner manipulate for edit ...
nilo de roock's user avatar
7 votes
2 answers
158 views

How to localize symbols in 'Manipulate'

I'm confused about the best approach to localizing symbols used in a Manipulate. I understand that Manipulate does a good job by ...
orome's user avatar
  • 12.8k
6 votes
2 answers
497 views

Manipulate Evaluation Order Problem

I seem to be getting some unintended results from a nested Manipulate that I have not been able to resolve. I boiled down the problem I'm having to a simplified ...
Chris Roth's user avatar
3 votes
2 answers
319 views

How to use locally scoped dynamic variables in Manipulate for expression and control parameters

I have a Manipulate that has dynamic variables that I want to use in the displayed expression and use in the parameters for the manipulate controls. I only ...
Edmund's user avatar
  • 42.2k
3 votes
1 answer
92 views

How do I initialise a compound expression in Animate? Or, how do I have an expression evaluate on startup?

I have written a notebook with a few functions I defined. These functions describe a way of generating graphs using 2 inputs. e.g. graph[n_,s_] := Graph[...] I have ...
Ross Keenan's user avatar
2 votes
1 answer
389 views

Does DynamicModule cure Problem with Manipulate?

Hopefully, this is a final cure for the Problem with Manipulate introduced on A problem with Manipulate and then continued on Continuation of a Problem with Manipulate. Michael E2 suggested on the ...
David's user avatar
  • 14.9k
1 vote
1 answer
196 views

Continuation of a Problem with Manipulate

For the beginning of this discussion, see: A problem with Manipulate. Now, the final use of the Initialization command doesn't protect the Global workspace. What I am discussing is not a single ...
David's user avatar
  • 14.9k
4 votes
0 answers
462 views

DynamicModule, SaveDefinitions and global functions

Unfortunately, I had not checked stackoverflow, because there, the exact same behavior was already reported. Please see the Q&A "SaveDefinitions considered dangerous". Up-front, I'm on ...
halirutan's user avatar
  • 113k