Inheritance diagram for IPython.kernel.core.prompts:
Classes for handling input/output prompts.
Bases: object
Interactive prompt similar to Mathematica’s.
Return the last depth elements of the current working directory.
$HOME is always replaced with ‘~’. If depth==0, the full path is returned.
Return the last depth elements of the current working directory.
$HOME is always replaced with ‘~’. If depth==0, the full path is returned.
Template for prompt string creation
Set the interpolating prompt strings.
This must be called every time the color settings change, because the prompt_specials global may have changed.
Class for printing output from calculations while keeping a cache of reults. It dynamically creates global variables prefixed with _ which contain these results.
Meant to be used as a sys.displayhook replacement, providing numbered prompts and cache services.
Initialize with initial and final values for cache counter (this defines the maximum size of the cache.
Default printer method, uses pprint.
Do ip.set_hook(“result_display”, my_displayhook) for custom result display, e.g. when your own objects need special formatting.
Set the active color scheme and configure colors for the three prompt subsystems.
Bases: IPython.kernel.core.prompts.BasePrompt
Input interactive prompt similar to Mathematica’s.
Print a string of the form ‘—>’ which lines up with the previous input string. Useful for systems which re-write the user input when handling automatically special syntaxes.
Replace in ‘text’ all occurences of any key in the given dictionary by its corresponding value. Returns the new string.
Convert to a string, without ever raising an exception.
If str(arg) fails, <ERROR: ... > is returned, where ... is the exception error message.