|
def | __init__ |
|
def | namespace |
|
def | eval |
|
def | complete |
|
def | shell |
|
|
| term |
|
| IP |
|
| ip |
|
| iter_more |
|
| complete_sep |
|
| prompt |
|
Definition at line 28 of file ishell.py.
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 32 of file ishell.py.
33 cin=
None, cout=
None,cerr=
None, input_func=
None):
36 IPython.iplib.raw_input_original = input_func
38 IPython.Shell.Term.cin = cin
40 IPython.Shell.Term.cout = cout
42 IPython.Shell.Term.cerr = cerr
45 IPython.iplib.raw_input =
lambda x:
None
46 self.
term = IPython.genutils.IOTerm(cin=cin, cout=cout, cerr=cerr)
47 os.environ[
'TERM'] =
'dumb'
48 excepthook = sys.excepthook
49 self.
IP = IPython.Shell.make_IPython(argv,
51 user_global_ns=user_global_ns,
53 shell_class=IPython.Shell.InteractiveShell)
54 self.IP.system =
lambda cmd: self.
shell(self.IP.var_expand(cmd),
55 header=
'IPython system call: ',
56 verbose=self.IP.rc.system_verbose)
59 self.ip.magic(
'colors LightBG')
60 sys.excepthook = excepthook