MCPcopy Create free account
hub / github.com/datapane/datapane / get_environment

Function get_environment

python-client/src/datapane/ipython/environment.py:25–31  ·  view source on GitHub ↗

Returns the current IPython environment

()

Source from the content-addressed store, hash-verified

23
24
25def get_environment() -> PythonEnvironment:
26 """Returns the current IPython environment"""
27 global _env
28 if _env is None:
29 _env = _get_environment()
30 log.info("Detected IPython environment: %s", _env.name)
31 return _env
32
33
34def _get_ipython() -> t.Optional[InteractiveShell]:

Callers 4

open_in_browserFunction · 0.90
display_msgFunction · 0.90
_ipython_display_Method · 0.90
cells_to_blocksFunction · 0.85

Calls 1

_get_environmentFunction · 0.85

Tested by

no test coverage detected