I'm getting an error when trying to run a simple dashboard using Dash. I'm using Spyder with Python 3.4. I've pip installed
dash, dash_core_components, dash_html_compenents
..
My code:
import dash
import dash_core_components as dcc
import dash_html_components as html
app = dash.Dash()
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': 'SF'},
{'x': [1, 2, 3], 'y': [2, 4, 5], 'type': 'bar', 'name': u'Montréal'},
],
'layout': {
'title': 'Dash Data Visualization'
}
}
)
])
if __name__ == '__main__':
app.run_server(debug=True)
This was taken right from Dash/Plotly website tutorial
I get the following error:
* Running on http://127.0.0.1:8050/ (Press CTRL+C to quit)
* Restarting with stat
C:\Users\mwolfe\AppData\Local\Continuum\anaconda3\envs\py34\lib\site-packages\IPython\core\interactiveshell.py:2889: UserWarning:
To exit: use 'exit', 'quit', or Ctrl-D.
An exception has occurred, use %tb to see the full traceback.
SystemExit: 1
When I go to http://127.0.0.1:8050/
to try to view the example dashboard It won't load.
I've tried this in order to fix the issue, but haven't been able to get that to work.