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

Method in_prompt_tokens

examples/utils/cwd_prompt.py:9–11  ·  view source on GitHub ↗
(self, cli=None)

Source from the content-addressed store, hash-verified

7class MyPrompt(Prompts):
8
9 def in_prompt_tokens(self, cli=None):
10 return [(Token, os.getcwd()),
11 (Token.Prompt, '>>>')]
12
13def load_ipython_extension(shell):
14 new_prompts = MyPrompt(shell)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected