Python Dash: Call Dash app with get parameters

I want to create a dash app that has access to parameters passed in address. For example, http://localhost:5050?config=bob.json

    dash.dependencies.Output('funnel-graph', 'figure'),
    [dash.dependencies.Input('Manager', 'value')])
def update_graph(Manager):
   config = ... # get config value of 'bob.json'
   # Do something with config and Manager

Hi @cplager

I think you need to use dcc.Location as input, it gives you any part of your address.

Hi @Eduardo,
That should let me do exactly what I want. Thanks!

1 Like