Skip to content

Commit

Permalink
Update for dash >= 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
verveerpj committed Sep 23, 2021
1 parent 3f9562a commit 7f639e4
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 30 deletions.
3 changes: 1 addition & 2 deletions everviz/plugins/best_controls_plot/best_controls_plot.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from uuid import uuid4
from pathlib import Path

import dash_html_components as html
import dash_core_components as dcc
from dash import html, dcc

import plotly.express as px

Expand Down
3 changes: 1 addition & 2 deletions everviz/plugins/config_editor/config_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
import yaml
from dash import callback_context
from dash.dependencies import Input, Output, State
import dash_html_components as html
import dash_core_components as dcc
from dash import html, dcc
from everviz.plugins.plugin_abc import EvervizPluginABC


Expand Down
4 changes: 1 addition & 3 deletions everviz/plugins/controls_plot/controls_plot.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
from uuid import uuid4
from pathlib import Path

import dash_html_components as html
import dash_core_components as dcc

import plotly.graph_objs as go

from dash import html, dcc
from dash.dependencies import Output, Input
from everviz.plugins.plugin_abc import EvervizPluginABC
from everviz.data.load_csv.get_data import get_data
Expand Down
3 changes: 1 addition & 2 deletions everviz/plugins/crossplot/crossplot.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from pathlib import Path
from uuid import uuid4
import dash_html_components as html
import dash_core_components as dcc
from dash import html, dcc

from dash.dependencies import Input, Output
from everviz.plugins.plugin_abc import EvervizPluginABC
Expand Down
3 changes: 1 addition & 2 deletions everviz/plugins/crossplot/crossplot_indexed.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from pathlib import Path
from uuid import uuid4

import dash_html_components as html
import dash_core_components as dcc
from dash import html, dcc
from dash.dependencies import Output, Input
from everviz.plugins.plugin_abc import EvervizPluginABC

Expand Down
4 changes: 1 addition & 3 deletions everviz/plugins/delta_plot/delta_plot.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
from uuid import uuid4
from pathlib import Path

import dash_html_components as html
import dash_core_components as dcc

import plotly.graph_objs as go

from dash import html, dcc
from dash.dependencies import Output, Input
from everviz.plugins.plugin_abc import EvervizPluginABC
from everviz.data.load_csv.get_data import get_data
Expand Down
3 changes: 1 addition & 2 deletions everviz/plugins/gradient_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
from pathlib import Path

from pandas import IndexSlice
import dash_html_components as html
import dash_core_components as dcc

import plotly.graph_objs as go

from dash import html, dcc
from dash.dependencies import Output, Input
from everviz.plugins.plugin_abc import EvervizPluginABC
from everviz.data.load_csv.get_data import get_data
Expand Down
4 changes: 1 addition & 3 deletions everviz/plugins/objectives_plot/objectives_plot.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from uuid import uuid4
from itertools import cycle

import dash_html_components as html
import dash_core_components as dcc

import plotly.graph_objs as go
from plotly.colors import DEFAULT_PLOTLY_COLORS

from dash import html, dcc
from dash.dependencies import Output, Input, State
from everviz.plugins.plugin_abc import EvervizPluginABC
from everviz.data.load_csv.get_data import get_data
Expand Down
4 changes: 1 addition & 3 deletions everviz/plugins/objectives_plot/single_objectives_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
from pathlib import Path
from itertools import cycle

import dash_html_components as html
import dash_core_components as dcc

import plotly.graph_objs as go
from plotly.colors import DEFAULT_PLOTLY_COLORS

from dash import html, dcc
from dash.dependencies import Output, Input
from everviz.data.load_csv.get_data import get_data
from everviz.plugins.plugin_abc import EvervizPluginABC
Expand Down
3 changes: 1 addition & 2 deletions everviz/plugins/summary_plot/summary_plot.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from uuid import uuid4

import dash_html_components as html
import dash_core_components as dcc
from dash import html, dcc
from dash.dependencies import Output, Input, State

from everviz.plugins.plugin_abc import EvervizPluginABC
Expand Down
3 changes: 1 addition & 2 deletions everviz/plugins/summary_plot/wells_plot.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from pathlib import Path
from uuid import uuid4

import dash_html_components as html
import dash_core_components as dcc
from dash import html, dcc
from dash.dependencies import Output, Input

from everviz.plugins.plugin_abc import EvervizPluginABC
Expand Down
4 changes: 2 additions & 2 deletions everviz/plugins/utils/layout/sidebar_layout.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import dash_core_components as dcc
import dash_html_components as html
from dash import dcc
from dash import html


def get_sidebar_layout(configurations):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"pyyaml",
"pandas",
"numpy",
"dash",
"dash>=2.0",
"webviz-config>=0.2.0",
"plotly",
"flask",
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/crossplot/test_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import dash
import pytest
import dash_html_components as html
from dash import html
import pandas as pd
from PIL import Image

Expand Down

0 comments on commit 7f639e4

Please sign in to comment.