-
-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
enhancementNew feature or requestNew feature or request
Description
First off: Just found out about WLJS, Amazing work, thank you, will contribute!!
To my question, I gather that dynamic stuff like Manipulate are maybe not "first-class citizens" in WLJS, but here's an observation.
This works for me:
Manipulate[Plot[Sin[2 π a x] Cos[2 π b x], {x, 0, 1}], {{a, 1}, 0, 5, 1}, {{b, 1}, {1->"low", 2->"med", 3->"high"}}]
But this doesn't:
freqSelection = {1->"low", 2->"med", 3->"high"};
Manipulate[Plot[Sin[2 π a x] Cos[2 π b x], {x, 0, 1}], {{a, 1}, 0, 5, 1}, {{b, 1}, freqSelection}]
But this works again:
freqSelection = {1->"low", 2->"med", 3->"high"};
Manipulate[Plot[Sin[2 π a x] Cos[2 π b x], {x, 0, 1}], {{a, 1}, 0, 5, 1}, Evaluate[{{b, 1}, freqSelection}]]
Any idea why this happens?
[Wolfram Engine 14.3 | WLJS 2.8.7-x64]
P.S.: not to highjack my own thread, but is there a roadmap for quality-of-experience improvements in the frontend (e.g. merge/split/move cells, shortcut to evaluate cell & move to next [like, ctrl + enter or something], multi-select cells etc.)?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request