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

learn more… | top users | synonyms

0
votes
0answers
15 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 ...
2
votes
1answer
50 views
2
votes
0answers
52 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
19 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
101 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 ...
2
votes
1answer
59 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. ...
0
votes
3answers
48 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 ...
9
votes
3answers
294 views

Problem with CurrentValue[“MouseOver”] when graphics are wrapped with Deploy

Bug reproduced in V9.0.1 and persisting through V10.4.1 Please take a look at following toy example: ...
18
votes
1answer
259 views

What is the difference between Dynamic[x] and Dynamic[ h[x] ] for DynamicModule variables?

Bug introduced in 9.0 or earlier and persisting through 10.4.1 Why plain Dynamic[x] is less sensitive and less likely to automatically be updated than e.g. ...
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. ...
6
votes
2answers
68 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 ...
3
votes
0answers
103 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 ...
0
votes
1answer
122 views

Crash when dynamically updating ListLinePlot

I was trying to solve a wave problem using numerical methods. The code below crashes each time I run it on Windows with version 10.2. ...
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
79 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 ...
4
votes
2answers
214 views

Custom PopupMenu file selector

Lately I come across what I think not uninteresting problem which is a good exercise for the usage of Dynamic. Assume you have files in a directory structure (a ...
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 ...
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
2answers
53 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
140 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: ...
1
vote
1answer
102 views

Tooltip in Prolog and Epilog

I have a question concerning Tooltip. I got a ParametricPlot and included two pictures and a dynamic point. I try to use Tooltip for each of those 2 Objects. But it doesn't work. I am not quite sure, ...
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 ...
25
votes
4answers
1k views

Detecting KeyUp events

Is there a way to detect when a key is released, similar to EventHandler[InputField[], {"KeyDown", "k"} :> Print["k pressed"]] It seems such detection isn't ...
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 ...
0
votes
1answer
26 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 ...
139
votes
1answer
25k views

Mathematica Minecraft

Some time ago I asked myself: with all these great graphics and interactive capabilities of Mathematica, what kinds of 3D games can be implemented in it? And the answer which came to mind is ...
11
votes
1answer
217 views

How can I include functions from a package into a CDF file?

I am building an application which I would like to deploy as a CDF file, and I am struggling to make the CDF exports work correctly with functions pulled from a .m package file. What are good/best ...
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
43 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: ...
27
votes
3answers
1k views

What are the most common (usual) ways to make palettes with non-trivial functionality?

What are the best (most robust and most convenient) ways to create palettes that can be installed permanently (using Palettes -> Install Palette...) and are safe ...
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 ...
10
votes
1answer
211 views

Notebook's WindowSize interference with contents' Dynamic ImageSizes

Bug introduced in 8 or earlier and persists through 10.4.0 or later Consider the following MWE: ...
8
votes
1answer
919 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 ...
13
votes
0answers
124 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' ...
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 ...
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 ...
20
votes
0answers
210 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 ...
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 ...
13
votes
2answers
183 views

How to prevent Dynamic activity with colour swatches in V10+

Since version 10, if I type e.g. an RGBColor or simply a named color, a dynamic colour swatch is returned. Same goes for when you e.g. extract colours from a ...
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 ...
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 ...
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 ...
7
votes
3answers
227 views

Panning by moving Origin (0,0) with Mouse

Given a 10 by 10 grid like the one below and the axis origin somewhere on the grid, I would like to be able to place the mouse pointer at the axes origin (0,0), then press and hold the mouse button ...
6
votes
2answers
403 views

Programming with Dynamic

I don't understand the following: f[a_, b_] := a + b ls = {1, 2, 3}; MapThread[f, {ls, {10, 20, 30}}] This yields ( as expected ) {11,22,33} If I change ...
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.
7
votes
2answers
184 views

How to track Part of Symbol or How to symbolize Parts of Symbol without copying data

Let's create simple function: SetAttributes[h, HoldFirst]; h[data_] := Dynamic[Grid[data], TrackedSymbols :> {data}] test = RandomReal[1, {2, 2}]; h[test] ...