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

Function get_ipython

IPython/core/getipython.py:16–23  ·  view source on GitHub ↗

Get the global InteractiveShell instance. Returns None if no InteractiveShell instance is registered.

()

Source from the content-addressed store, hash-verified

14
15
16def get_ipython():
17 """Get the global InteractiveShell instance.
18
19 Returns None if no InteractiveShell instance is registered.
20 """
21 from IPython.core.interactiveshell import InteractiveShell
22 if InteractiveShell.initialized():
23 return InteractiveShell.instance()

Callers 15

__enter__Method · 0.90
ebivimFunction · 0.90
auto_matchFunction · 0.90
navigable_suggestionsFunction · 0.90
reformat_and_executeFunction · 0.90
newline_autoindentFunction · 0.90
error_catcherMethod · 0.90
_trigger_llm_coreMethod · 0.90
llm_autosuggestionFunction · 0.90
swap_autosuggestion_upFunction · 0.90

Calls

no outgoing calls

Tested by 15

test_image_mimesFunction · 0.72
test_display_availableFunction · 0.72
test_display_idFunction · 0.72
test_update_displayFunction · 0.72
test_display_handleFunction · 0.72
test_repr_mimeFunction · 0.72
test_repr_mime_metaFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…