12
$\begingroup$

Bug introduced in V10.4 or earlier, fixed in 11.1.0

A support case with the identification [CASE:3710168] was created.

[...] I was able to reproduce the issue [...] I am checking with the development team to see if we have a workaround for this.


After switching DynamicUpdating off and on, the Dynamic with UpdateInterval option displays $Aborted.

Dynamic[RandomReal[], UpdateInterval -> 1]

x = 1; Dynamic[x]
Slider @ Dynamic[x]

Checkbox @ Dynamic @ CurrentValue[EvaluationNotebook[], DynamicUpdating]

enter image description here

Worth to mention that if this notebook is saved in an untrusted path, opened and is asking to "Enable Dynamic Updating" then it works fine.

Also, toggling with Evaluation/DynamicUpdatingEnabled menu item works fine.

It makes the answer to Create a notebook and save it without prompting Dynamics partially unusable.

$\endgroup$
1
  • $\begingroup$ this seems to be fixed in 11.1 $\endgroup$
    – ktm
    Apr 19, 2017 at 20:20

1 Answer 1

1
$\begingroup$

Here is a workaround that will be enough in many of cases.

The downside is that you will not have any precise indication, like in original Checkbox, whether it is enabled or not. It is because CurrentValue[EvaluationNotebook[], DynamicUpdating] stays Automatic.

To the point, you can toggle it with a token:

Button["ToggleDynamicUpdating", 
 FrontEndExecute @ FrontEndToken[EvaluationNotebook[], "ToggleDynamicUpdating"]
]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.