Add workaround for dash < 2.0
This commit is contained in:
parent
1531ad1879
commit
486fdf6c00
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue