Issue
Hi I am new to Dash and I was following the tutorial on the page https://dash.plot.ly/getting-started I got an error citing msgpack not installed. I installed it later and then ran the following code given on the page.
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':[2,4,1],'type':'bar','name':'SF'}
],
'layout': {
'title':'Dash Data Visualisation'
}
}
)
])
if __name__ == '__main__':
app.run_server(debug=True)
When I go on this http://127.0.0.1:8050/ I get the following error
Error loading layout
I read the dash documentation and community help, there are some similar questions asked, but I am not able to understand them. Please help.
Solution
I once again deleted all libraries and reinstalled them and also ran the code in Chrome. It is working fine now.
Answered By - user9149054
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.