posit-dev / py-shinywidgets

Render ipywidgets inside a PyShiny app
MIT License
41 stars 2 forks source link

Request: plotly client side linking #59

Open MartijnKamps opened 1 year ago

MartijnKamps commented 1 year ago

Great work on pyshiny, I am loving it so far!

I am not an expert but with relatively little effort managed to make a dashboard with multiple plotly visualisations that are filtered using the ui.inputs (eg. ui.input_slider()). What I haven't been able to figure out is how to make graphical filtering/client side linking work, as is described for R here: https://plotly-r.com/client-side-linking.html

Maybe it is already possible, but I don't understand the reactive_read() function well enough (also couldn't find additional documentation on this).

Is it possible to add an example in the example folder in which a plotly bar chart is filtered when a box select on a scatter chart is performed?

Many thanks!

cpsievert commented 1 year ago

Thanks! Client side linking in the way described in that link is only supported in R; however, thanks to https://github.com/rstudio/shinylive (and it's support for ipywidgets) it should be possible to do very similar linking entirely in the browser