_is_jupyter_environment() — langchain Function Reference
Architecture documentation for the _is_jupyter_environment() function in runner_utils.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 8d744069_e975_7da0_ccb1_c99580663aed["_is_jupyter_environment()"] 8253c602_7d0c_9195_a7e1_3e9b19304131["runner_utils.py"] 8d744069_e975_7da0_ccb1_c99580663aed -->|defined in| 8253c602_7d0c_9195_a7e1_3e9b19304131 9f2d07d1_c1f1_bf7e_d690_30c9e25f4004["_display_aggregate_results()"] 9f2d07d1_c1f1_bf7e_d690_30c9e25f4004 -->|calls| 8d744069_e975_7da0_ccb1_c99580663aed style 8d744069_e975_7da0_ccb1_c99580663aed fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/smith/evaluation/runner_utils.py lines 1296–1303
def _is_jupyter_environment() -> bool:
try:
from IPython.core.getipython import get_ipython
res = get_ipython() # type: ignore[no-untyped-call]
return res is not None and "zmqshell" in str(type(res))
except ImportError:
return False
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _is_jupyter_environment() do?
_is_jupyter_environment() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/smith/evaluation/runner_utils.py.
Where is _is_jupyter_environment() defined?
_is_jupyter_environment() is defined in libs/langchain/langchain_classic/smith/evaluation/runner_utils.py at line 1296.
What calls _is_jupyter_environment()?
_is_jupyter_environment() is called by 1 function(s): _display_aggregate_results.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free