@@ -52,6 +52,7 @@ def warning_on_one_line(message, category, filename, lineno,
52
52
_numpy_imported = False
53
53
54
54
try :
55
+ import scipy
55
56
from scipy .stats import norm , gaussian_kde
56
57
_scipy_imported = True
57
58
except ImportError :
@@ -2350,7 +2351,7 @@ def create_distplot(hist_data, group_labels,
2350
2351
import plotly.plotly as py
2351
2352
from plotly.tools import FigureFactory as FF
2352
2353
2353
- from scipy.stats import norm, gaussian_kde
2354
+
2354
2355
2355
2356
hist_x = [[1.1, 1.1, 2.5, 3.0, 3.5,
2356
2357
3.5, 4.1, 4.4, 4.5, 4.5,
@@ -2369,8 +2370,6 @@ def create_distplot(hist_data, group_labels,
2369
2370
import plotly.plotly as py
2370
2371
from plotly.tools import FigureFactory as FF
2371
2372
2372
- from scipy.stats import norm, gaussian_kde
2373
-
2374
2373
# Add histogram data
2375
2374
hist1_x = [0.8, 1.2, 0.2, 0.6, 1.6,
2376
2375
-0.9, -0.07, 1.95, 0.9, -0.2,
@@ -2404,8 +2403,6 @@ def create_distplot(hist_data, group_labels,
2404
2403
import plotly.plotly as py
2405
2404
from plotly.tools import FigureFactory as FF
2406
2405
2407
- from scipy.stats import norm, gaussian_kde
2408
-
2409
2406
x1 = np.random.randn(20)
2410
2407
x2 = np.random.randn(40)+1
2411
2408
x3 = np.random.randn(10)-1
0 commit comments