Public Member Functions |
| def | __init__ |
|
def | namespace |
|
def | eval |
|
def | complete |
|
def | shell |
Data Fields |
|
| term |
|
| IP |
|
| ip |
|
| iter_more |
|
| complete_sep |
|
| prompt |
Detailed Description
Definition at line 28 of file ishell.py.
Constructor & Destructor Documentation
| def pycons::ishell::Shell::__init__ |
( |
|
self, |
|
|
|
argv = None, |
|
|
|
user_ns = None, |
|
|
|
user_global_ns = None, |
|
|
|
cin = None, |
|
|
|
cout = None, |
|
|
|
cerr = None, |
|
|
|
input_func = None |
|
) |
| |
Definition at line 31 of file ishell.py.
00033 :
00034 """ """
00035 if input_func:
00036 IPython.iplib.raw_input_original = input_func
00037 if cin:
00038 IPython.Shell.Term.cin = cin
00039 if cout:
00040 IPython.Shell.Term.cout = cout
00041 if cerr:
00042 IPython.Shell.Term.cerr = cerr
00043 if argv is None:
00044 argv=[]
00045 IPython.iplib.raw_input = lambda x: None
00046 self.term = IPython.genutils.IOTerm(cin=cin, cout=cout, cerr=cerr)
00047 os.environ['TERM'] = 'dumb'
00048 excepthook = sys.excepthook
00049 self.IP = IPython.Shell.make_IPython(argv,
00050 user_ns=user_ns,
00051 user_global_ns=user_global_ns,
00052 embedded=True,
00053 shell_class=IPython.Shell.InteractiveShell)
00054 self.IP.system = lambda cmd: self.shell(self.IP.var_expand(cmd),
00055 header='IPython system call: ',
00056 verbose=self.IP.rc.system_verbose)
00057
00058 self.ip = ipapi.get()
00059 self.ip.magic('colors LightBG')
00060 sys.excepthook = excepthook
00061 self.iter_more = 0
00062 self.complete_sep = re.compile('[\s\{\}\[\]\(\)]')
00063
The documentation for this class was generated from the following file: