ultralytics 8.3.18 fix is_jupyter() to globals() (#17023)
This commit is contained in:
parent
b5f1a70974
commit
92cc8b8b52
2 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
# Ultralytics YOLO 🚀, AGPL-3.0 license
|
# Ultralytics YOLO 🚀, AGPL-3.0 license
|
||||||
|
|
||||||
__version__ = "8.3.17"
|
__version__ = "8.3.18"
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -571,7 +571,7 @@ def is_jupyter():
|
||||||
Returns:
|
Returns:
|
||||||
(bool): True if running inside a Jupyter Notebook, False otherwise.
|
(bool): True if running inside a Jupyter Notebook, False otherwise.
|
||||||
"""
|
"""
|
||||||
return "get_ipython" in locals()
|
return "get_ipython" in globals()
|
||||||
|
|
||||||
|
|
||||||
def is_docker() -> bool:
|
def is_docker() -> bool:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue