Source code for langchain_core.utils.interactive_env

[docs]def is_interactive_env() -> bool: """确定是否在IPython或Jupyter中运行。""" import sys return hasattr(sys, "ps2")