Inheritance diagram for IPython.frontend.linefrontendbase:
Base front end class for all line-oriented frontends, rather than block-oriented.
Currently this focuses on synchronous frontends.
Bases: IPython.frontend.frontendbase.FrontEndBase
Concrete implementation of the FrontEndBase class. This is meant to be the base class behind all the frontend that are line-oriented, rather than block-oriented.
Complete line in engine’s user_ns
Parameters: | line : string |
---|---|
Returns: | The replacement for the line and the list of possible completions. : |
Check if a string forms a complete, executable set of commands.
For the line-oriented frontend, multi-line code is not executed as soon as it is complete: the users has to enter two line returns.
Prints a prompt and starts a new editing buffer.
Subclasses should use this method to make sure that the terminal is put in a state favorable for a new line input.
Write some characters to the display.
Subclass should overide this method.
The refresh keyword argument is used in frontends with an event loop, to choose whether the write should trigget an UI refresh, and thus be syncrhonous, or not.
Write the list of possible completions.
new_line is the completed input line that should be displayed after the completion are writen. If None, the input_buffer before the completion is used.