Inheritance diagram for IPython.frontend.prefilterfrontend:
Frontend class that uses IPython0 to prefilter the inputs.
Using the IPython0 mechanism gives us access to the magics.
This is a transitory class, used here to do the transition between ipython0 and ipython1. This class is meant to be short-lived as more functionnality is abstracted out of ipython0 in reusable functions and is added on the interpreter. This class can be a used to guide this refactoring.
Bases: IPython.frontend.linefrontendbase.LineFrontEndBase
Class that uses ipython0 to do prefilter the input, do the completion and the magics.
The core trick is to use an ipython0 instance to prefilter the input, and share the namespace between the interpreter instance used to execute the statements and the ipython0 used for code completion...
Parameters : | ipython0: an optional ipython0 instance to use for command : prefiltering and completion. : argv : list, optional
|
---|
Capture all the output mechanisms we can think of.
Exit the shell, cleanup and save the history.
Using IPython0 to prefilter the commands to turn them in executable statements that are valid Python strings.
Release all the different captures we have made.
Store all the output hooks we can think of, to be able to restore them.
We need to do this early, as starting the ipython0 instance will screw ouput hooks.
Use ipython0 to capture the last traceback and display it.
Allows for frontend to define their own system call, to be able capture output and redirect input.
given a os.system replacement, and a leading string command, returns a function that will execute the command with the given argument string.