In the “Dash in 20 Minutes” tutorial, the following line that is used in the example code does not work:
app.layout = [html.Div(children=‘Hello World’]
This does work:
app.layout = html.Div( [html.Div(children=‘Hello World’) ]
Ok, I see that I neglected the second parenthesis, thanks for that, but the point still stands.
This line, copied from the “Dash in 20 minutes” tutorial, does not work:
app.layout=[html.Div(children=‘Hello World’)]
But this line does:
app.layout = html.Div([html.Div(children=‘Hello World’)])
For the second block of code in “Dash in 20 Minutes”,
This layout does not work:
app.layout = [
html.Div(children=‘My First App with Data’),
dash_table.DataTable(data=df.to_dict(‘records’), page_size=10)
]
But this does:
app.layout = html.Div(
[html.Div(children=‘Hello World’),
dash_table.DataTable(data=df.to_dict(‘records’), page_size=10)]
)