Don't assume we have Dash 2.0 installed

i still have some python 3.5 out there, which can't use Dash 2.0
This commit is contained in:
Lance Edgar 2021-12-21 11:51:23 -06:00
parent b37911f7db
commit 333d8a513e

View file

@ -25,7 +25,11 @@ Sample Dash App
""" """
import pandas as pd 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 from dash.dependencies import Input, Output
import plotly.express as px import plotly.express as px