IterableIPShell class. More...
Public Member Functions | |
def | __init__ (self, argv=[], user_ns=None, user_global_ns=None, cin=None, cout=None, cerr=None, input_func=None) |
Constructor for the IterableIPShell class. 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 | |
complete_sep | |
separators More... | |
history_level | |
history level More... | |
indent_spaces | |
indent spaces More... | |
IP | |
IP. More... | |
iter_more | |
iterate more More... | |
lines | |
lines More... | |
no_input_splitter | |
no input splitter More... | |
prompt | |
prompt More... | |
Private Member Functions | |
def | __update_namespace (self) |
Update self.IP namespace for autocompletion with sys.modules. More... | |
def | _getHistory (self) |
Gets the command string of the current history level. More... | |
IterableIPShell class.
Definition at line 39 of file ipython_view.py.
def visualizer.ipython_view.IterableIPShell.__init__ | ( | self, | |
argv = [] , |
|||
user_ns = None , |
|||
user_global_ns = None , |
|||
cin = None , |
|||
cout = None , |
|||
cerr = None , |
|||
input_func = None |
|||
) |
Constructor for the IterableIPShell class.
self | this object |
argv | Command line options for IPython |
user_ns | User namespace. |
user_global_ns | User global namespace. |
cin | Console standard input. |
cout | Console standard output. |
cerr | Console standard error. |
input_func | Replacement for builtin raw_input() |
Definition at line 65 of file ipython_view.py.
|
private |
Update self.IP namespace for autocompletion with sys.modules.
Definition at line 155 of file ipython_view.py.
References visualizer.ipython_view.IterableIPShell.IP, and list.
|
private |
Gets the command string of the current history level.
self | this object |
Definition at line 267 of file ipython_view.py.
References visualizer.ipython_view.IterableIPShell.history_level, and visualizer.ipython_view.IterableIPShell.IP.
Referenced by visualizer.ipython_view.IterableIPShell.historyBack(), and visualizer.ipython_view.IterableIPShell.historyForward().
def visualizer.ipython_view.IterableIPShell.complete | ( | self, | |
line | |||
) |
Returns an auto completed line and/or possibilities for completion.
line | Given line so far. |
Definition at line 289 of file ipython_view.py.
References visualizer.ipython_view.IterableIPShell.complete_sep, and visualizer.ipython_view.IterableIPShell.IP.
Referenced by visualizer.ipython_view.IPythonView.onKeyPressExtend().
def visualizer.ipython_view.IterableIPShell.execute | ( | self | ) |
Executes the current line provided by the shell object.
Definition at line 164 of file ipython_view.py.
References visualizer.ipython_view.IterableIPShell.history_level.
def visualizer.ipython_view.IterableIPShell.generatePrompt | ( | self, | |
is_continuation | |||
) |
Generate prompt depending on is_continuation value.
is_continuation |
Definition at line 229 of file ipython_view.py.
def visualizer.ipython_view.IterableIPShell.historyBack | ( | self | ) |
Provides one history command back.
self | this object |
Definition at line 244 of file ipython_view.py.
References visualizer.ipython_view.IterableIPShell._getHistory(), and visualizer.ipython_view.IterableIPShell.history_level.
Referenced by visualizer.ipython_view.IPythonView.onKeyPressExtend().
def visualizer.ipython_view.IterableIPShell.historyForward | ( | self | ) |
Provides one history command forward.
self | this object |
Definition at line 256 of file ipython_view.py.
References visualizer.ipython_view.IterableIPShell._getHistory(), and visualizer.ipython_view.IterableIPShell.history_level.
Referenced by visualizer.ipython_view.IPythonView.onKeyPressExtend().
def visualizer.ipython_view.IterableIPShell.shell | ( | self, | |
cmd, | |||
verbose = 0 , |
|||
debug = 0 , |
|||
header = "" |
|||
) |
Replacement method to allow shell commands without them blocking.
cmd | Shell command to execute. |
verbose | Verbosity |
debug | Debug level |
header | Header to be printed before output |
Definition at line 326 of file ipython_view.py.
def visualizer.ipython_view.IterableIPShell.updateNamespace | ( | self, | |
ns_dict | |||
) |
Add the current dictionary to the shell namespace.
ns_dict | A dictionary of symbol-values. |
Definition at line 280 of file ipython_view.py.
References visualizer.ipython_view.IterableIPShell.IP.
visualizer.ipython_view.IterableIPShell.complete_sep |
separators
Definition at line 141 of file ipython_view.py.
Referenced by visualizer.ipython_view.IterableIPShell.complete().
visualizer.ipython_view.IterableIPShell.history_level |
history level
Definition at line 140 of file ipython_view.py.
Referenced by visualizer.ipython_view.IterableIPShell._getHistory(), visualizer.ipython_view.IterableIPShell.execute(), visualizer.ipython_view.IterableIPShell.historyBack(), and visualizer.ipython_view.IterableIPShell.historyForward().
visualizer.ipython_view.IterableIPShell.indent_spaces |
indent spaces
Definition at line 153 of file ipython_view.py.
Referenced by visualizer.ipython_view.ConsoleView._showReturned().
visualizer.ipython_view.IterableIPShell.IP |
IP.
Definition at line 125 of file ipython_view.py.
Referenced by visualizer.ipython_view.IterableIPShell.__update_namespace(), visualizer.ipython_view.IterableIPShell._getHistory(), visualizer.ipython_view.ConsoleView._showReturned(), visualizer.ipython_view.IterableIPShell.complete(), and visualizer.ipython_view.IterableIPShell.updateNamespace().
visualizer.ipython_view.IterableIPShell.iter_more |
iterate more
Definition at line 139 of file ipython_view.py.
visualizer.ipython_view.IterableIPShell.lines |
lines
Definition at line 152 of file ipython_view.py.
visualizer.ipython_view.IterableIPShell.no_input_splitter |
no input splitter
Definition at line 151 of file ipython_view.py.
Referenced by visualizer.ipython_view.ConsoleView._showReturned().
visualizer.ipython_view.IterableIPShell.prompt |
prompt
Definition at line 181 of file ipython_view.py.
Referenced by visualizer.ipython_view.ConsoleView._showReturned(), visualizer.ipython_view.ConsoleView.onKeyPress(), and visualizer.ipython_view.IPythonView.onKeyPressExtend().