Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ipython/ipython
/ out_prompt_tokens
Method
out_prompt_tokens
IPython/terminal/prompts.py:53–58 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
51
]
52
53
def
out_prompt_tokens(self):
54
return
[
55
(Token.OutPrompt,
'Out['
),
56
(Token.OutPromptNum, str(self.shell.execution_count)),
57
(Token.OutPrompt,
']: '
),
58
]
59
60
class
ClassicPrompts(Prompts):
61
def
in_prompt_tokens(self):
Callers
1
write_output_prompt
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected