GnuCash  5.6-150-g038405b370+
Public Member Functions | Data Fields
pycons.ishell.Shell Class Reference

Public Member Functions

def __init__ (self, argv=None, user_ns=None, user_global_ns=None, cin=None, cout=None, cerr=None, input_func=None)
 
def namespace (self)
 
def eval (self, console)
 
def complete (self, line)
 
def shell (self, cmd, verbose=0, debug=0, header='')
 

Data Fields

 term
 
 IP
 
 ip
 
 iter_more
 
 complete_sep
 
 prompt
 

Detailed Description

 

Definition at line 27 of file ishell.py.

Constructor & Destructor Documentation

◆ __init__()

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.

31  cin=None, cout=None,cerr=None, input_func=None):
32  """ """
33  if input_func:
34  IPython.iplib.raw_input_original = input_func
35  if cin:
36  IPython.Shell.Term.cin = cin
37  if cout:
38  IPython.Shell.Term.cout = cout
39  if cerr:
40  IPython.Shell.Term.cerr = cerr
41  if argv is None:
42  argv=[]
43  IPython.iplib.raw_input = lambda x: None
44  self.term = IPython.genutils.IOTerm(cin=cin, cout=cout, cerr=cerr)
45  os.environ['TERM'] = 'dumb'
46  excepthook = sys.excepthook
47  self.IP = IPython.Shell.make_IPython(argv,
48  user_ns=user_ns,
49  user_global_ns=user_global_ns,
50  embedded=True,
51  shell_class=IPython.Shell.InteractiveShell)
52  self.IP.system = lambda cmd: self.shell(self.IP.var_expand(cmd),
53  header='IPython system call: ',
54  verbose=self.IP.rc.system_verbose)
55  # Get a hold of the public IPython API object and use it
56  self.ip = IPython.core.getipython.get_ipython()
57  self.ip.magic('colors LightBG')
58  sys.excepthook = excepthook
59  self.iter_more = 0
60  self.complete_sep = re.compile(r'[\s\{\}\[\]\(\)]')
61 
62 

The documentation for this class was generated from the following file: