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.
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.
Bases: IPython.kernel.core.prompts.BasePrompt
Input interactive prompt similar to Mathematica’s.
Convert to a string, without ever raising an exception.
If str(arg) fails, <ERROR: ... > is returned, where ... is the exception error message.