【发布时间】:2020-05-10 17:52:39
【问题描述】:
Dash App中需要有一个回调函数来执行一些动作然后刷新页面,只能使用HTML A标签实现页面重新加载。
html.A(html.Button('Refresh Data'),href='/')
必填:
app.layout = html.Div([html.Button(id="refresh")])
@app.callback(Output('???', '???'),
[Input('refresh', 'n_clicks')])
def refresh(n):
## Perform some action ##
## call python function API ##
## Finally Refresh the Page ##
?
return ?
【问题讨论】:
标签: python python-3.x plotly-dash