From 73ecb961cb51419e1c1b8fc0278a12d6f11d6881 Mon Sep 17 00:00:00 2001 From: Jonathan Kummerfeld Date: Mon, 14 Feb 2022 11:27:56 -0600 Subject: [PATCH] Updating dash imports to avoid deprecated packages When running the old code it gave warnings: ```UserWarning: The dash_core_components package is deprecated. Please replace `import dash_core_components as dcc` with `from dash import dcc` UserWarning: The dash_html_components package is deprecated. Please replace `import dash_html_components as html` with `from dash import html```` This commit makes those changes. --- doc/what_about_dash.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/what_about_dash.md b/doc/what_about_dash.md index bef6ac916dd..29f3c58fcf6 100644 --- a/doc/what_about_dash.md +++ b/doc/what_about_dash.md @@ -16,8 +16,8 @@ fig = go.Figure() # or any Plotly Express function e.g. px.bar(...) # fig.update_layout( ... ) import dash -import dash_core_components as dcc -import dash_html_components as html +from dash import dcc +from dash import html app = dash.Dash() app.layout = html.Div([