django-plotly-dash icon indicating copy to clipboard operation
django-plotly-dash copied to clipboard

Passing URL Get Request parameters to Dash App

Open sanjaymeena opened this issue 2 years ago • 2 comments

Hello,

I am directly embedding plotly dash app using plotly_direct. If I want to pass URL Get parameters to the dash app, how is it possible to do it? The standalone dash app (2.6) works fine using the dash multi-page app approach.

sanjaymeena avatar Sep 01 '22 14:09 sanjaymeena

The GET parameters are available to whatever view is rendering the template containing the plotly_direct or similar tag. You'll need to pass the necessary parameters to the dash app as arguments to this tag. See the template tag documentation for more information.

GibbsConsulting avatar Sep 07 '22 12:09 GibbsConsulting

Note that there is an enhancement request #417 for multi-page dash apps, which are reported to be a new feature of Dash that is not yet available in dpd.

GibbsConsulting avatar Sep 07 '22 12:09 GibbsConsulting