Modifying figures in-place

Good morning :slight_smile: Does Shiny have a recommended mechanism for modifying a (plotly) figure in-place?

Say I have a rather complicated figure with lots of traces. As a response to user input, I'd like to re-calculate and redraw one trace. The desired figure behaviour is that nothing but that single trace is moving, redrawing or flickering, both for speed and for the user to easily see the change. Is there a tidy way to achieve this in Shiny for Python?

As we can run JS in shiny for python you should be able to use Plotly.restyle. I'm currently not aware of a python plotly::plotlyProxy() counterpart.