MCPcopy Create free account
hub / github.com/ipython/ipython / get_ipython

Function get_ipython

IPython/conftest.py:12–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11
12def get_ipython():
13 from .terminal.interactiveshell import TerminalInteractiveShell
14 if TerminalInteractiveShell._instance:
15 return TerminalInteractiveShell.instance()
16
17 config = tools.default_config()
18 config.TerminalInteractiveShell.simple_prompt = True
19
20 # Create and initialize our test-friendly IPython instance.
21 shell = TerminalInteractiveShell.instance(config=config)
22 return shell
23
24
25@pytest.fixture(scope='session', autouse=True)

Callers 1

injectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected