Hello,
I’m working with Dash as a really nice way to interact with an embedded system. One thing I keep running into is the need to generate a callback from within the Python code, outside of callback code.
For example, I’m using a progress indicator html component to indicate progress of saving a file. I can update the progress component from within an interval callback, and that works, but it would be more natural to generate a property change from within my Python code – such as:
# change 'value' property of 'save-progress' indicator -- set it to progVal
dcc.sendOutput('save-progress', 'value', progVal)
I mostly bring it up because it seems like a way to simplify other parts of my interface as well. I have more examples… but for starters, I’m wondering if there is another way to accomplish this, or if something like this has been discussed before.
FWIW I’m using socketIO (websockets) for a custom video streaming Dash component. It’s given me enough confidence to consider digging in parts of Dash that I have no business digging into.
I may be barking up the wrong tree… let me know
thanks!