Using default traitlet values from the Javascript side #640
Replies: 2 comments
-
The Python model definition is the source of truth. JavaScript must be loaded and executed to set a value on the Python side. One option would be to However, I don't recommend this approach because there will be timing issues where a property is |
Beta Was this translation helpful? Give feedback.
-
Ok - thanks. FWIW, my use case is running a simulator in the widget. The Python sid sends code to the siimulator, the simulator widget executes it, and then the js simulator exposes some state back for analysis. |
Beta Was this translation helpful? Give feedback.
-
When setting initial values for traitlets / shared state across the python and js sides, the initial/default value seems to inherit from the pyhton side.
Is there a simple way of allowing the initial state to be set from the Javascript side?
Beta Was this translation helpful? Give feedback.
All reactions