Module:terminal.prompts

Terminal input and output prompts.

3 Classes

classIPython.terminal.prompts.Prompts(shell)

Bases:object

__init__(shell)
classIPython.terminal.prompts.ClassicPrompts(shell)

Bases:Prompts

classIPython.terminal.prompts.RichPromptDisplayHook(**kwargs:Any)

Bases:DisplayHook

Subclass 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 tosys.stdout. Subclasses shouldoverride this method to send the entireformat_dict to thefrontends.

Parameters:
  • format_dict (dict) – The format dict for the object passed tosys.displayhook.

  • md_dict (dict (optional)) – The metadata dict to be associated with the display data.

write_output_prompt()

Write the output prompt.

The default implementation simply writes the prompt tosys.stdout.