Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9613bc9

Browse files
committed
put scipy.stats in first scipy try in tools.py
1 parent 63500ac commit 9613bc9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

plotly/tools.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def warning_on_one_line(message, category, filename, lineno,
9090

9191
try:
9292
import scipy as scp
93+
import scipy.stats
9394
_scipy_imported = True
9495
except ImportError:
9596
_scipy_imported = False
@@ -106,12 +107,12 @@ def warning_on_one_line(message, category, filename, lineno,
106107
except ImportError:
107108
_scipy__cluster__hierarchy_imported = False
108109

109-
try:
110-
import scipy
111-
import scipy.stats
112-
_scipy_imported = True
113-
except ImportError:
114-
_scipy_imported = False
110+
#try:
111+
# import scipy
112+
# import scipy.stats
113+
# _scipy_imported = True
114+
#except ImportError:
115+
# _scipy_imported = False
115116

116117

117118
def get_config_defaults():
@@ -6138,7 +6139,6 @@ def create_distplot(hist_data, group_labels,
61386139
data = sum(data, [])
61396140
return graph_objs.Figure(data=data, layout=layout)
61406141

6141-
61426142
@staticmethod
61436143
def create_dendrogram(X, orientation="bottom", labels=None,
61446144
colorscale=None, distfun=scs.distance.pdist,

0 commit comments

Comments
 (0)