I have been trying to make visualizations using plotly dash and wanted to try out the first app example from the sites documentaion. I copied and pasted most of the code and made sure to make the correct indentations but seem to keep getting an error on the brackets. Any advice?
import dash
import dash_core_components as dcc
import dash_html_components as html
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
app.layout = html.Div(children=[
html.H1(children='Hello Dash'),
html.Div(children='''
Dash: A web application framework for Python.
'''),
dcc.Graph(
id='example-graph',
figure={
'data': [
{'x': [1, 2, 3], 'y': [4, 1, 2], 'type': 'bar', 'name':
{'x': [1, 2, 3], 'y': [2, 4, 5], 'type': 'bar', 'name':
],
'layout': {
'title': 'Dash Data Visualization'
}
}
)
])
if __name__ == '__main__':
app.run_server(debug=True)