Module:terminal.prompts
Terminal input and output prompts.
3 Classes
- classIPython.terminal.prompts.RichPromptDisplayHook(**kwargs:Any)
Bases:
DisplayHookSubclass of base display hook using coloured prompt
- write_format_data(format_dict,md_dict=None)→None
Write the format data dict to the frontend.
This default version of this method simply writes the plain textrepresentation of the object to
sys.stdout. Subclasses shouldoverride this method to send the entireformat_dictto thefrontends.
- write_output_prompt()
Write the output prompt.
The default implementation simply writes the prompt to
sys.stdout.