✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

The layout was `None` issue

Receiving this error for the code below. I’m also running this on Jupyter Notebooks.

"The layout was None "
dash.exceptions.NoLayoutException: The layout was None at the time that run_server was called. Make sure to set the layout attribute of your application before running the server. - - [05/Jun/2020 17:32:09] “GET /favicon.ico HTTP/1.1” 500 -

app = dash.Dash()

html.Div(id=‘my-div’, children=[
‘data’: [go.Choropleth(
colorscale = ‘Cividis’,
locations = dfgf[‘dest_state’],
z = dfgf[‘count’],
locationmode = ‘USA-states’,
text = dfgf[‘dest_state’])



if name == ‘main’:

looks like you’re missing app.layout = …

oh wow…maybe it’s time to take a break :sweat_smile: