MCPcopy Index your code
hub / github.com/ipython/ipython / get_ipython

Function get_ipython

tests/conftest.py:17–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16
17def get_ipython():
18 from IPython.terminal.interactiveshell import TerminalInteractiveShell
19
20 if TerminalInteractiveShell._instance:
21 return TerminalInteractiveShell.instance()
22
23 config = tools.default_config()
24 config.TerminalInteractiveShell.simple_prompt = True
25
26 # Create and initialize our test-friendly IPython instance.
27 shell = TerminalInteractiveShell.instance(config=config)
28 return shell
29
30
31@pytest.fixture(scope="session", autouse=True)

Callers 15

test_historyFunction · 0.70
test_magic_rerunFunction · 0.70
test_timestamp_typeFunction · 0.70
test_hist_file_configFunction · 0.70
test_calling_run_cellFunction · 0.70
test_extension_loadingFunction · 0.70
test_extension_builtinsFunction · 0.70
test_non_extensionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…