Skip to content

Commit

Permalink
changes to dash v2 style imports
Browse files Browse the repository at this point in the history
  • Loading branch information
oegedijk committed Feb 10, 2022
1 parent 54dcf77 commit f38b70f
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 50 deletions.
7 changes: 2 additions & 5 deletions explainerdashboard/custom.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import dash
import dash_html_components as html
import dash_core_components as dcc
import dash_bootstrap_components as dbc

from dash.dependencies import Input, Output, State
from dash import html, dcc, Input, Output, State
from dash.exceptions import PreventUpdate
import dash_bootstrap_components as dbc

from .dashboard_components import *
from .dashboard_tabs import *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@
import pandas as pd

import dash
import dash_core_components as dcc
from dash import html, dcc, Input, Output, State
from dash.exceptions import PreventUpdate
import dash_bootstrap_components as dbc
import dash_html_components as html

from dash.dependencies import Input, Output, State
from dash.exceptions import PreventUpdate
import plotly.graph_objs as go

from ..dashboard_methods import *
Expand Down
2 changes: 1 addition & 1 deletion explainerdashboard/dashboard_components/composites.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
]

import dash_bootstrap_components as dbc
import dash_html_components as html
from dash import html

from ..explainers import RandomForestExplainer, XGBExplainer
from ..dashboard_methods import *
Expand Down
8 changes: 3 additions & 5 deletions explainerdashboard/dashboard_components/connectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@

import numpy as np

import dash_core_components as dcc
import dash_bootstrap_components as dbc
import dash_html_components as html

from dash.dependencies import Input, Output, State
import dash
from dash import html, dcc, Input, Output, State
from dash.exceptions import PreventUpdate
import dash_bootstrap_components as dbc

from ..dashboard_methods import *

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@
]

import dash
import dash_core_components as dcc
import dash_bootstrap_components as dbc
import dash_html_components as html
import dash_table

from dash.dependencies import Input, Output, State
from dash import html, dcc, Input, Output, State, dash_table
from dash.exceptions import PreventUpdate
import dash_bootstrap_components as dbc

from ..explainers import RandomForestExplainer, XGBExplainer
from ..dashboard_methods import *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@
import pandas as pd

import dash
import dash_core_components as dcc
import dash_bootstrap_components as dbc
import dash_html_components as html
import dash_table

from dash.dependencies import Input, Output, State
from dash import html, dcc, Input, Output, State, dash_table
from dash.exceptions import PreventUpdate
import dash_bootstrap_components as dbc

from ..dashboard_methods import *
from .. import to_html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@
import pandas as pd

import dash
import dash_core_components as dcc
import dash_bootstrap_components as dbc
import dash_html_components as html

from dash.dependencies import Input, Output, State
from dash import html, dcc, Input, Output, State
from dash.exceptions import PreventUpdate
import dash_bootstrap_components as dbc

from ..dashboard_methods import *
from .. import to_html
Expand Down
7 changes: 2 additions & 5 deletions explainerdashboard/dashboard_components/shap_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@
'ShapContributionsGraphComponent']

import dash
import dash_core_components as dcc
import dash_bootstrap_components as dbc
import dash_html_components as html

from dash.dependencies import Input, Output, State
from dash import html, dcc, Input, Output, State
from dash.exceptions import PreventUpdate
import dash_bootstrap_components as dbc

from ..dashboard_methods import *
from .. import to_html
Expand Down
6 changes: 3 additions & 3 deletions explainerdashboard/dashboard_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
import socket

import dash
import dash_core_components as dcc
from dash import html, dcc, Input, Output, State
from dash.exceptions import PreventUpdate

import dash_bootstrap_components as dbc
import dash_html_components as html
from dash.dependencies import Input, Output, State

from . import to_html

Expand Down
2 changes: 1 addition & 1 deletion explainerdashboard/dashboard_tabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
'DecisionTreesTab',
]

import dash_html_components as html
from dash import html

from .dashboard_components import *

Expand Down
9 changes: 3 additions & 6 deletions explainerdashboard/dashboards.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,10 @@
import oyaml as yaml

import dash
import dash_auth
import dash_core_components as dcc
import dash_html_components as html
import dash_bootstrap_components as dbc

from dash.dependencies import Input, Output, State
from dash import html, dcc, Input, Output, State
from dash.exceptions import PreventUpdate
import dash_bootstrap_components as dbc
import dash_auth

from flask import Flask, request, redirect
from flask_simplelogin import SimpleLogin, login_required
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dash
dash>=2
dash-bootstrap-components
dash-auth
jupyter_dash
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='explainerdashboard',
version='0.3.7',
version='0.3.8',
description='Quickly build Explainable AI dashboards that show the inner workings of so-called "blackbox" machine learning models.',
long_description="""
Expand Down Expand Up @@ -68,7 +68,7 @@
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Topic :: Scientific/Engineering :: Artificial Intelligence"],
install_requires=['dash>=1.20', 'dash-bootstrap-components<1', 'jupyter_dash', 'dash-auth',
install_requires=['dash>=2', 'dash-bootstrap-components<1', 'jupyter_dash', 'dash-auth',
'dtreeviz>=1.3', 'numpy', 'pandas>=1.1', 'scikit-learn',
'shap>=0.37', 'joblib', 'oyaml', 'click', 'waitress',
'flask_simplelogin', 'orjson'],
Expand Down

0 comments on commit f38b70f

Please sign in to comment.