Skip to content

Commit 57cc568

Browse files
authored
Use Dash 2 (#683)
1 parent 9673e9d commit 57cc568

File tree

175 files changed

+177
-256
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+177
-256
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
strategy:
5252
max-parallel: 6
5353
matrix:
54-
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
54+
python-version: [3.6, 3.7, 3.8, 3.9]
5555
services:
5656
hub:
5757
image: selenium/hub:3.141.59-gold

dash_bootstrap_components/_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from itertools import groupby
33
from operator import add
44

5-
import dash_html_components as html
5+
from dash import html
66

77

88
def _generate_table_from_df(

docs/components_page/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
import dash
55
import dash_bootstrap_components as dbc
6-
import dash_core_components as dcc
7-
import dash_html_components as html
6+
from dash import dcc, html
87
from jinja2 import Environment, FileSystemLoader
98

109

docs/components_page/components/__tests__/wrappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PY_WRAPPER = """
22
import dash
33
import dash_bootstrap_components as dbc
4-
import dash_html_components as html
4+
from dash import html
55
66
app = dash.Dash(external_stylesheets=[dbc.themes.BOOTSTRAP])
77

docs/components_page/components/accordion/callback.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import dash_bootstrap_components as dbc
2-
import dash_html_components as html
3-
from dash.dependencies import Input, Output
2+
from dash import Input, Output, State, dcc, html
43

54
accordion = html.Div(
65
[

docs/components_page/components/accordion/collapsed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import dash_bootstrap_components as dbc
2-
import dash_html_components as html
2+
from dash import html
33

44
accordion = html.Div(
55
dbc.Accordion(

docs/components_page/components/accordion/flush.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import dash_bootstrap_components as dbc
2-
import dash_html_components as html
2+
from dash import html
33

44
accordion = html.Div(
55
dbc.Accordion(

docs/components_page/components/accordion/simple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import dash_bootstrap_components as dbc
2-
import dash_html_components as html
2+
from dash import html
33

44
accordion = html.Div(
55
dbc.Accordion(

docs/components_page/components/alert/auto_dismiss.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import dash_bootstrap_components as dbc
2-
import dash_html_components as html
3-
from dash.dependencies import Input, Output, State
2+
from dash import Input, Output, State, html
43

54
alert = html.Div(
65
[

docs/components_page/components/alert/content.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import dash_bootstrap_components as dbc
2-
import dash_html_components as html
2+
from dash import html
33

44
alert = dbc.Alert(
55
[

0 commit comments

Comments
 (0)