Questions relating to the dynamic family of functions in Mathematica, such as Dynamic, DynamicModule and Manipulate.

learn more… | top users | synonyms

4
votes
1answer
44 views

Constrain Locator to specified region

How can I constrain the locator to stay within the region defined by RegionPlot? When the locator remains within the region, NDSolve generates a periodic solution. (The boundary of the region ...
0
votes
0answers
20 views

Make an existing solution for monitoring parallel jobs robust against dying kernels

Is there any chance to make the solution by @David here http://mathematica.stackexchange.com/a/1562/21606 more robust in the following sense: In my case, some parallel kernels die regularly during ...
0
votes
0answers
25 views
2
votes
0answers
54 views

Interface design to replace cascading dialogs which don't work

I would like to make a nice Interface of a simulation I wrote, but i don't know how. I want that you run the code and then a window asking for input of some values appears (either in the same ...
6
votes
2answers
72 views

Annoying behavior of a dynamic angular gauge

I want to do something that can be simplified into the following toy example: I want to dynamically show the count down to a future date on an AngularGage. The ...
1
vote
1answer
21 views

Delete Cell Inside of Module

I want to print a dynamic output while some code is running and then automatically delete it when when the output is done. PrintTemporary is not quite what I am looking for -- I want the output to be ...
3
votes
1answer
103 views

Drawing dynamical trajectories diagram in Mathematica

I've a Boolean gene regulation system composed of vectors(corresponding to cellular phenotypes). Their components are binary numbers such as $\{1,0,0,1\}$. A vector can change its statement in ...
0
votes
1answer
61 views

Dynamically update three graphics simultaneously

I have a problem. How can I get three arrows in to update simultaneously? All work, but one by one. ...
0
votes
3answers
49 views

Manipulate with dynamic input

I really new to Mathematica and I am working on developing interactive CDF. To understand the basics I start with a simple example but even with that I have a problem. In this simple CDF I want to ...
3
votes
0answers
107 views

Neural network playground

I came across this Neural Net Playground demonstration based on Google's Tensorflow package. It visualizes the data processing inside a neural network and allows you to tweak parameters and ...
6
votes
2answers
69 views

Abort an EventHandler?

How do I stop an EventHandler? I'm trying to allow the user unlimited inputs on the arrow keys UNTIL certain conditions are met, and then stop the ...
1
vote
0answers
33 views

What is a simple way to enumerate all potentially unsafe dynamic objects in a notebook or cdf? [closed]

What is a simple way to enumerate all potentially unsafe dynamic objects in a notebook or cdf document? The objects, whose presence generate an alert in a form of ...
3
votes
0answers
82 views

Preventing the content of a CDF report from being overwritten when multiple reports are open at once

Our Mathematica application obtains a group of input files, analyzes them and generates a report in a form of CDF document. The report contains multiple dynamic/interactive graphs and tables. To save ...
0
votes
1answer
46 views

Stopping variable from being updated by dynamic

I'm trying to write a script that will dynamically update, except for one variable, say y in a block Dynamic@F[x,y] So that ...
6
votes
0answers
62 views

Generating OpenCL C code [closed]

I'm trying to make an interactive complex function plotter using OpenCl. So far I can only plot functions that I hardcode into the kernel by hand. I'd like to be able to use ...
4
votes
2answers
54 views

Dynamic Tooltips displaying cell contents

I'm working on a piece of code that would allow me to make tooltips displaying contents of another cell (EquationNumbered style). ...
2
votes
1answer
141 views

Creating a function takes a list and dynamically modifies that list [duplicate]

I'm trying to create a function that uses a dynamic locatorpane to populate a list with the coordinates of user defined locators (added by alt+clicking). This code works fine: ...
0
votes
1answer
27 views

How to avoid improper update of Dynamic in a Dialog?

I want to request user input of an expression of f(x) from a dialog and then use ToExpression on the input. Questions: When I execute the code below, I got r ...
5
votes
2answers
67 views

A locator that is visible only when it is used

I want to construct a graphics with a locator on top of it. This locator normally has to be invisible, but when I click somewhere in the graphics, the least that has to happen is that the locator ...
4
votes
1answer
57 views

Blocking dialog with a blocking child dialog

Suppose I have a DialogInput, in which there is a Button. The Button can trigger another ...
2
votes
1answer
63 views

Module vs. DynamicModule in a custom plot function [closed]

In my Mathematica work flow I move often used functions into a custom package (.m file) at some point. Since I like the features of the CustomTicks package, I have a collection of custom plot ...
1
vote
0answers
44 views

Frontend flickering [closed]

The front end is flickering on hyperlink mouse-over events: Is there any way to avoid this, or any option that could boost the front end's frame rate for mouse related dynamic events?
5
votes
4answers
202 views

How to make a panel disappear?

I would like to make a panel look like a ChoiceDialog. Let's say a have a panel like this: ...
0
votes
1answer
35 views

Type of Dynamic object and GUI-construction for file import [closed]

It's not clear what the Dynamic objects really are. For example, if I define the following x=1; Dynamic[x]; y=Dynamic[x]; we can see that all the three are ...
2
votes
1answer
62 views

Create a notebook and save it without prompting Dynamics

This is closely related to the recent: Creating self destructing notebook. However the answer doesn't work in my case. ...
8
votes
1answer
921 views

Creating self destructing notebook

Inspired by this post I've been trying to implement the idea in Wolfram with no success yet. I've come pretty close though and need some help. So I've managed to do this: ...
1
vote
1answer
53 views

How to include Initialization in DynamicModule

I want to learn some of the basic rules for construction DynamicModule code. I have looked at Kuba's post and feel overwhelmed by it. My ultimate goal is to use ...
3
votes
2answers
75 views

Force ExplicitEuler Method of NDSolve to produce simple “connect the dot” plot

The code plots the solution to an ordinary differential equation (ODE) on its corresponding vector field by one of two methods: (1) click on an initial point of the vector field or (2) keyboard entry ...
20
votes
0answers
212 views

How to design CloudObjects with reasonable CloudCredit costs

Note: I originally thought to post this as a non-answer/extended comment to this question; however I feared that I would end up hijacking the original question. It is likely a duplicate with the ...
13
votes
0answers
125 views

Current (e.g., ca. 2016 / MMa 10 / WP 4+) best practices for embedding interactive content in WordPress?

My strategy, in the past, has been to embed interactive CDF files into my WordPress blog for student's to use (Much like the Wolfram Demonstration Project). As many know 1) the 'Plug in' ...
1
vote
2answers
97 views

Incompatibility between Dynamic’s second argument and Wolfram Demonstrations

A central feature of the Wolfram Demonstrations is the use of multiple instances of the Manipulate output, placed into the Thumbnail and Snapshots sections – for instance here, that are used to ...
6
votes
2answers
121 views

Issues with Dynamic's second-argument functions

First: According to the documentation Dynamic[expr,f] evaluates f[val,expr] during interactive changing or editing. Now check ...
8
votes
0answers
70 views

What is the equivalent of $ModuleNumber for DynamicModule

Mathematica provides access to $ModuleNumber which can be enormously useful. Unfortunately I can't find the equivalent for ...
2
votes
1answer
57 views

$CellContext issue while trying to export the current output of a Manipulate

Having just read this question Getting variables out of Dynamic Modules after restoring the program and the Kuba's answer I'm trying to optimize my workflow. I'm writing a Mathematica notebook to ...
7
votes
1answer
90 views

How to interactively transform an image (rotate / translate / etc) on a per-component basis?

I have binary images like this one and I want to be able to interactively select its components and rotate them around its centroid by a different angle for each component. I may also want to ...
6
votes
1answer
54 views

ControlActive doesn't distinguish the active element in list-based controls

There are three controls in the following code: the first one is a "stand-alone" one and the other two are based on the list angle. When one of the "angles" becomes ...
2
votes
1answer
51 views

How to make a set of interdependent popup menus work?

Here is my code that is not working. ...
5
votes
2answers
72 views

Creating a warning before executing a function if not cancelled?

How could I create a warning dialog that executes a function if not cancelled after a delay ? Also I would like the time remaining before execution to be displayed and the dialog to be non blocking.
0
votes
0answers
58 views

Why does this code produce an infinite loop?

I can't understand the way this code behaves and suspect that is because of some unrecognized reasons of general interest. Otherwise, I apologize and will retire the question. In ...
1
vote
0answers
168 views

Pitfalls of running multiple Mathematica kernels?

I've recently started running long calculations in one Mathematica kernel while I continue to work in another kernel. I thought this was safe, but yesterday I was running THIS CODE in which a ...
0
votes
2answers
54 views

How to set dynamically stylesheet definitions?

To produce good color schemes for styling notebook I was used to generate a grid of controls ...
3
votes
1answer
50 views

An issue regarding the use of CopyToClipboard with dynamic content

Please, consider the following code: ...
11
votes
1answer
98 views

Speed up Dynamic for graphical interface

I am trying to create a user interface where I can click on certain points in a set of data and save them into a list that can be used later in my code. The problem is it is currently sluggish. Is ...
2
votes
0answers
43 views

Mathematica for dynamics and controls [closed]

I am new to Mathematica and want it to use for dynamic and control systems. To begin with, I would want to be limited to symbolic computation for linear and nonlinear control systems - including ...
2
votes
1answer
93 views

Interacting with the vertices of a polygon and points on a circle

I want to create an interactive module, where I can plot the vertices of polygon and some points on a circle(for example, suppose a triangle and 3 points on the circle) and move the vertices of the ...
5
votes
0answers
46 views

CheckboxBar doesn't work with TrackedSymbols

CheckboxBar doesn't work with TrackedSymbols and a custom callback function. Here's an example that doesn't work ...
3
votes
2answers
99 views

Button with loop that iteratively updates slider in Manipulate

I have the toy Manipulate. ...
1
vote
1answer
51 views

Declaring functions in NDSolve? [duplicate]

I have a simple enough series of coupled ODES, which is relatively easy to solve. It looks something like this. ...
2
votes
3answers
44 views

Selection Limit on CheckboxBar

Is there an easy way to limit the number of selections in a CheckboxBar such that at any time you can choose only two options. I tried to use the "Enabled" option, but that grays out the whole ...