ultralytics 8.3.18 fix is_jupyter() to globals() (#17023)

This commit is contained in:
Glenn Jocher 2024-10-19 01:19:45 +02:00 committed by GitHub
parent b5f1a70974
commit 92cc8b8b52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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: