Coding-with-Adam / Dash-by-Plotly

Interactive data analytics
dash-by-plotly.coding-with-adam.vercel.app
1.47k stars 1.69k forks source link

Error in Dash2.0 solution 4: need MantineProvider to for mantine components. #59

Closed delale closed 5 days ago

delale commented 2 weeks ago

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])
Coding-with-Adam commented 5 days ago

Thank you @delale . I just made the update on line 21 🙏🏻