Spaces:
Running
Running
MilesCranmer
commited on
Commit
·
355dd06
1
Parent(s):
17f8bf1
Fix detection of jupyter
Browse files- pysr/sr.py +1 -1
pysr/sr.py
CHANGED
@@ -255,7 +255,7 @@ def pysr(X, y, weights=None,
|
|
255 |
constraints = {}
|
256 |
|
257 |
if progress is not None:
|
258 |
-
if progress and ('buffer' in sys.stdout.__dir__()):
|
259 |
warnings.warn("Note: it looks like you are running in Jupyter. The progress bar will be turned off.")
|
260 |
progress = False
|
261 |
else:
|
|
|
255 |
constraints = {}
|
256 |
|
257 |
if progress is not None:
|
258 |
+
if progress and ('buffer' not in sys.stdout.__dir__()):
|
259 |
warnings.warn("Note: it looks like you are running in Jupyter. The progress bar will be turned off.")
|
260 |
progress = False
|
261 |
else:
|