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

Class MyPrompt

examples/utils/cwd_prompt.py:7–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5import os
6
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 1

load_ipython_extensionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected