Add workaround for dash < 2.0

This commit is contained in:
Lance Edgar 2021-12-16 22:01:29 -06:00
parent 1531ad1879
commit 486fdf6c00

View file

@ -27,7 +27,11 @@ Sample Dash App
from __future__ import unicode_literals, absolute_import
import pandas as pd
from dash import dcc, html
try:
from dash import dcc, html
except ImportError:
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import plotly.express as px