langchain_core.utils.interactive_env
is_interactive_env()
Determine if running within IPython or Jupyter.