IPythonView class. More...
Public Member Functions | |
def | __init__ (self) |
def | onKeyPressExtend (self, event) |
Key press callback with plenty of shell goodness, like history, autocompletions, etc. More... | |
def | raw_input (self, prompt='') |
Custom raw_input() replacement. More... | |
Public Member Functions inherited from visualizer.ipython_view.ConsoleView | |
def | __init__ (self) |
def | changeLine (self, text) |
Replace currently entered command line with given text. More... | |
def | getCurrentLine (self) |
Get text in current command line. More... | |
def | onKeyPress (self, widget, event) |
Key press callback used for correcting behavior for console-like interfaces. More... | |
def | onKeyPressExtend (self, event) |
For some reason we can't extend onKeyPress directly (bug #500900). More... | |
def | showPrompt (self, prompt) |
Prints prompt at start of line. More... | |
def | showReturned (self, text) |
Show returned text from last command and print new prompt. More... | |
def | write (self, text, editable=False) |
Write given text to buffer. More... | |
Public Member Functions inherited from visualizer.ipython_view.IterableIPShell | |
def | __init__ (self, argv=None, user_ns=None, user_global_ns=None, cin=None, cout=None, cerr=None, input_func=None) |
Initializer. More... | |
def | complete (self, line) |
Returns an auto completed line and/or possibilities for completion. More... | |
def | execute (self) |
Executes the current line provided by the shell object. More... | |
def | generatePrompt (self, is_continuation) |
Generate prompt depending on is_continuation value. More... | |
def | historyBack (self) |
Provides one history command back. More... | |
def | historyForward (self) |
Provides one history command forward. More... | |
def | shell (self, cmd, verbose=0, debug=0, header='') |
Replacement method to allow shell commands without them blocking. More... | |
def | updateNamespace (self, ns_dict) |
Add the current dictionary to the shell namespace. More... | |
Public Attributes | |
cout | |
cout More... | |
history_pos | |
history list More... | |
interrupt | |
interrupt More... | |
prompt | |
prompt More... | |
Public Attributes inherited from visualizer.ipython_view.ConsoleView | |
color_pat | |
color pattern More... | |
line_start | |
line start More... | |
mark | |
scroll mark More... | |
text_buffer | |
text buffer More... | |
Public Attributes inherited from visualizer.ipython_view.IterableIPShell | |
complete_sep | |
separators More... | |
history_level | |
history level More... | |
IP | |
IP. More... | |
iter_more | |
iterate more More... | |
prompt | |
prompt More... | |
Private Member Functions | |
def | _processLine (self) |
Process current command line. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from visualizer.ipython_view.ConsoleView | |
dictionary | ANSI_COLORS |
color list More... | |
IPythonView class.
Definition at line 565 of file ipython_view.py.
def visualizer.ipython_view.IPythonView.__init__ | ( | self | ) |
Initialize. Redirect I/O to console.
Definition at line 584 of file ipython_view.py.
|
private |
Process current command line.
Definition at line 645 of file ipython_view.py.
Referenced by visualizer.ipython_view.IPythonView.onKeyPressExtend().
def visualizer.ipython_view.IPythonView.onKeyPressExtend | ( | self, | |
event | |||
) |
Key press callback with plenty of shell goodness, like history, autocompletions, etc.
event | Event object. |
Definition at line 610 of file ipython_view.py.
References visualizer.ipython_view.IPythonView._processLine(), visualizer.ipython_view.ConsoleView.changeLine(), visualizer.ipython_view.IterableIPShell.complete(), visualizer.ipython_view.ConsoleView.getCurrentLine(), visualizer.ipython_view.IterableIPShell.historyBack(), visualizer.ipython_view.IterableIPShell.historyForward(), visualizer.ipython_view.IPythonView.interrupt, visualizer.ipython_view.IterableIPShell.prompt, visualizer.ipython_view.ConsoleView.showPrompt(), check-style.PatchChunkLine.write(), check-style.PatchChunk.write(), check-style.Patch.write(), and visualizer.ipython_view.ConsoleView.write().
def visualizer.ipython_view.IPythonView.raw_input | ( | self, | |
prompt = '' |
|||
) |
Custom raw_input() replacement.
Gets current line from console buffer.
prompt | Prompt to print. Here for compatibility as replacement. |
Definition at line 598 of file ipython_view.py.
References visualizer.ipython_view.ConsoleView.getCurrentLine(), and visualizer.ipython_view.IPythonView.interrupt.
visualizer.ipython_view.IPythonView.cout |
cout
Definition at line 589 of file ipython_view.py.
visualizer.ipython_view.IPythonView.history_pos |
history list
Definition at line 650 of file ipython_view.py.
visualizer.ipython_view.IPythonView.interrupt |
interrupt
Definition at line 592 of file ipython_view.py.
Referenced by visualizer.ipython_view.IPythonView.onKeyPressExtend(), and visualizer.ipython_view.IPythonView.raw_input().
visualizer.ipython_view.IPythonView.prompt |
prompt
Definition at line 594 of file ipython_view.py.
Referenced by visualizer.ipython_view.ConsoleView._showReturned().