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

pull/17027/head
Glenn Jocher 4 months ago committed by GitHub
parent b5f1a70974
commit 92cc8b8b52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ultralytics/__init__.py
  2. 2
      ultralytics/utils/__init__.py

@ -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…
Cancel
Save