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

Function pre_prompt_hook

IPython/core/hooks.py:158–165  ·  view source on GitHub ↗

Run before displaying the next prompt Use this e.g. to display output from asynchronous operations (in order to not mess up text entry)

(self)

Source from the content-addressed store, hash-verified

156
157
158def pre_prompt_hook(self):
159 """ Run before displaying the next prompt
160
161 Use this e.g. to display output from asynchronous operations (in order
162 to not mess up text entry)
163 """
164
165 return None
166
167
168def pre_run_code_hook(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected