ordlibrary's picture
Upload folder using huggingface_hub
f1e6b80 verified
raw
history blame contribute delete
139 Bytes
def is_interactive_env() -> bool:
"""Determine if running within IPython or Jupyter."""
import sys
return hasattr(sys, "ps2")