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

Skip to content

Commit ae9f339

Browse files
committed
put import trys back to the way they were originally
1 parent 7c3aaf4 commit ae9f339

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

plotly/tools.py

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

9191
try:
9292
import scipy as scp
93-
import scipy.stats
9493
_scipy_imported = True
9594
except ImportError:
9695
_scipy_imported = False
@@ -107,12 +106,12 @@ def warning_on_one_line(message, category, filename, lineno,
107106
except ImportError:
108107
_scipy__cluster__hierarchy_imported = False
109108

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

117116

118117
def get_config_defaults():

0 commit comments

Comments
 (0)