MCPcopy Index your code
hub / github.com/ipython/ipython / current_line

Method current_line

IPython/terminal/prompts.py:32–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30 return ''
31
32 def current_line(self) -> int:
33 if self.shell.pt_app is not None:
34 return self.shell.pt_app.default_buffer.document.cursor_position_row or 0
35 return 0
36
37 def in_prompt_tokens(self):
38 return [

Callers 2

in_prompt_tokensMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected