MCPcopy Create free account
hub / github.com/alpha2phi/python-apps / set_cities_options

Function set_cities_options

sagemaker-dash/tutorials/app11.py:31–32  ·  view source on GitHub ↗
(selected_country)

Source from the content-addressed store, hash-verified

29@app.callback(Output('cities-radio', 'options'),
30 Input('countries-radio', 'value'))
31def set_cities_options(selected_country):
32 return [{'label': i, 'value': i} for i in all_options[selected_country]]
33
34
35@app.callback(Output('cities-radio', 'value'), Input('cities-radio',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected