Dash-by-Plotly
Dash-by-Plotly copied to clipboard
Error in Dash2.0 solution 4: need MantineProvider to for mantine components.
As explained in the dash-mantine-components Getting Started page, the app needs to be wrapped around a dmc.MantineProvider, otherwise an error is thrown (only in debug mode) and the alert is not visible.
Proposed fix:
Change line 21 of Good_to_Know/Dash2.0/Exercises/solution-4.py from
app.layout = dbc.Container([mytitle, myalert, mygraph, dropdown])
to
app.layout = dmc.MantineProvider([mytitle, myalert, mygraph, dropdown])