Returns the current IPython environment
()
| 23 | |
| 24 | |
| 25 | def 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 | |
| 34 | def _get_ipython() -> t.Optional[InteractiveShell]: |
no test coverage detected