MCPcopy
hub / github.com/prompt-toolkit/ptpython / prompt_for_code

Method prompt_for_code

src/ptpython/ipython.py:261–266  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

259 self.python_input = python_input
260
261 def prompt_for_code(self) -> str:
262 try:
263 return self.python_input.app.run()
264 except KeyboardInterrupt:
265 self.python_input.default_buffer.document = Document()
266 return ""
267
268
269def initialize_extensions(shell, extensions):

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected