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

Method in_prompt_tokens

examples/Embedding/embed_class_long.py:24–30  ·  view source on GitHub ↗
(self, cli=None)

Source from the content-addressed store, hash-verified

22class CustomPrompt(Prompts):
23
24 def in_prompt_tokens(self, cli=None):
25
26 return [
27 (Token.Prompt, 'In <'),
28 (Token.PromptNum, str(self.shell.execution_count)),
29 (Token.Prompt, '>: '),
30 ]
31
32 def out_prompt_tokens(self):
33 return [

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected