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:
parent
b37911f7db
commit
333d8a513e
|
@ -25,7 +25,11 @@ Sample Dash App
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
|
try:
|
||||||
from dash import dcc, html
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue