While creating a new html element in the Call back there was comma after closing html.Div tag, shown below.
After removing that comma, the fault was gone.
new_element= html.Div(
children=[
# html.H5(fact_input,className='text-center text-dark'),
dcc.Graph(
id={
'type': 'dynamic-graph1',
'index': n_clicks
},
figure={}),
dcc.Graph(
id={
'type': 'dynamic-graph2',
'index': n_clicks
},
figure={}),
],
), <------------------------------------FAULT
div_children.append(new_element)
return div_children
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.