You have 2 options:
Generate de html page and loadt it as an asset in Dash:
1 - Create the Report
profile = ProfileReport(df, title="Pandas Profiling Report")
profile.to_file("your_report.html")
2 - Load the html report
https://github.com/plotly/dash-core-components/issues/429
Get the raw text and install dash-dangerously-set-inner-html to use it in raw format:
1- Install the lib
pip install dash-dangerously-set-inner-html
2- Create the raw report
profile = ProfileReport(df, title="Pandas Profiling Report")
text_raw = profile.to_html()
3- Use it in your dash
app.layout = html.Div([
dash_dangerously_set_inner_html.DangerouslySetInnerHTML('''HTML CODE HERE''')])
app.layout = html.Div([
dash_dangerously_set_inner_html.DangerouslySetInnerHTML(text_raw)])
As the lib's name says, it's not recommended to use it.