2024-12-01 23:53:12 +03:00

6 lines
139 B
Python

def is_interactive_env() -> bool:
"""Determine if running within IPython or Jupyter."""
import sys
return hasattr(sys, "ps2")