Skip to content

Commit afa112a

Browse files
authored
Fixing #59 (#60)
* Fixing #59 * Fix codestyle (blake)
1 parent ff68f64 commit afa112a

20 files changed

+29
-31
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Dash-slicer depends on Python 3.6+ plus some [dependencies](requirements.txt).
3030

3131
```py
3232
import dash
33-
import dash_html_components as html
33+
from dash import html
3434
from dash_slicer import VolumeSlicer
3535
import imageio
3636

dash_slicer/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
dash_slicer - a volume slicer for Dash
33
"""
44

5-
65
from .slicer import VolumeSlicer # noqa: F401
76

87

dash_slicer/slicer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
import plotly.graph_objects
8484
import dash
8585
from dash.dependencies import Input, Output, State, ALL
86-
from dash_core_components import Graph, Slider, Store, Interval
86+
from dash.dcc import Graph, Slider, Store, Interval
8787

8888
from .utils import (
8989
discrete_colors,

examples/all_features.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
import plotly.graph_objects as go
66
import dash
7-
import dash_html_components as html
8-
import dash_core_components as dcc
7+
from dash import html
8+
from dash import dcc
99
from dash_slicer import VolumeSlicer
1010
from dash.dependencies import Input, Output, State, ALL
1111
import imageio

examples/bring_your_own_slider.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"""
88

99
import dash
10-
import dash_html_components as html
11-
import dash_core_components as dcc
10+
from dash import html
11+
from dash import dcc
1212
from dash.dependencies import Input, Output
1313
from dash_slicer import VolumeSlicer
1414
import imageio

examples/contrast.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"""
44

55
import dash
6-
import dash_html_components as html
7-
import dash_core_components as dcc
6+
from dash import html
7+
from dash import dcc
88
from dash.dependencies import Input, Output
99
from dash_slicer import VolumeSlicer
1010
import imageio

examples/set_slicer_position_interactively.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"""
55

66
import dash
7-
import dash_html_components as html
7+
from dash import html
88
from dash_slicer import VolumeSlicer
9-
import dash_core_components as dcc
9+
from dash import dcc
1010
from dash.dependencies import Input, Output
1111
import imageio
1212

examples/set_slicer_position_simple.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"""
66

77
import dash
8-
import dash_html_components as html
8+
from dash import html
99
from dash_slicer import VolumeSlicer
10-
import dash_core_components as dcc
10+
from dash import dcc
1111
from dash.dependencies import Input, Output, ALL
1212
import imageio
1313

examples/slicer_customized.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"""
55

66
import dash
7-
import dash_html_components as html
8-
import dash_core_components as dcc
7+
from dash import html
8+
from dash import dcc
99
from dash.dependencies import Input, Output, State
1010
from dash_slicer import VolumeSlicer
1111
import imageio

examples/slicer_with_1_plus_2_views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"""
1515

1616
import dash
17-
import dash_html_components as html
17+
from dash import html
1818
from dash_slicer import VolumeSlicer
1919
import imageio
2020

examples/slicer_with_1_view.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44

55
import dash
6-
import dash_html_components as html
6+
from dash import html
77
from dash_slicer import VolumeSlicer
88
import imageio
99

examples/slicer_with_2_views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44

55
import dash
6-
import dash_html_components as html
6+
from dash import html
77
from dash_slicer import VolumeSlicer
88
import imageio
99

examples/slicer_with_3_views.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
import plotly.graph_objects as go
77
import dash
8-
import dash_html_components as html
9-
import dash_core_components as dcc
8+
from dash import html
9+
from dash import dcc
1010
from dash_slicer import VolumeSlicer
1111
from dash.dependencies import Input, Output, State, ALL
1212
from skimage.measure import marching_cubes

examples/threshold_contour.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
import plotly
99
import dash
10-
import dash_html_components as html
11-
import dash_core_components as dcc
10+
from dash import html
11+
from dash import dcc
1212
from dash.dependencies import Input, Output
1313
from dash_slicer import VolumeSlicer
1414
import imageio

examples/threshold_overlay.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"""
88

99
import dash
10-
import dash_html_components as html
11-
import dash_core_components as dcc
10+
from dash import html
11+
from dash import dcc
1212
from dash.dependencies import Input, Output
1313
from dash_slicer import VolumeSlicer
1414
import numpy as np

requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ pillow
22
numpy
33
plotly
44
dash
5-
dash_core_components

test_deploy/app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44

55
import dash
6-
import dash_html_components as html
6+
from dash import html
77
from dash_slicer import VolumeSlicer
88
import imageio
99

tests/performance1.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
import plotly.graph_objects as go
66
import dash
7-
import dash_html_components as html
8-
import dash_core_components as dcc
7+
from dash import html
8+
from dash import dcc
99
from dash.dependencies import Input, Output, State
1010
import imageio
1111
from dash_slicer.utils import img_array_to_uri

tests/performance2.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
import plotly.graph_objects as go
77
import dash
8-
import dash_html_components as html
9-
import dash_core_components as dcc
8+
from dash import html
9+
from dash import dcc
1010
from dash.dependencies import Input, Output, State
1111
import imageio
1212
from dash_slicer.utils import img_array_to_uri

tests/test_slicer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import numpy as np
44
from pytest import raises
55
import dash
6-
import dash_core_components as dcc
6+
from dash import dcc
77

88

99
def test_slicer_init():

0 commit comments

Comments
 (0)