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

Function load_ipython_extension

examples/utils/cwd_prompt.py:13–16  ·  view source on GitHub ↗
(shell)

Source from the content-addressed store, hash-verified

11 (Token.Prompt, '>>>')]
12
13def load_ipython_extension(shell):
14 new_prompts = MyPrompt(shell)
15 new_prompts.old_prompts = shell.prompts
16 shell.prompts = new_prompts
17
18def unload_ipython_extension(shell):
19 if not hasattr(shell.prompts, 'old_prompts'):

Callers

nothing calls this directly

Calls 1

MyPromptClass · 0.85

Tested by

no test coverage detected