class core.interpreter.ipython.IPythonInProcessInterpreter(gui='qt4', locals=None)[source]

Bases: IPython.kernel.inprocess.ipkernel.InProcessKernel

Interpreter is an IPython kernel adapted for OpenAlea.

Parameters:
  • gui -- GUI to use. Default 'qt4'.
  • locals -- namespace to set to the interpreter. Default 'None'.
delete(varnames, **kwargs)[source]
get(varnames, **kwargs)[source]
push(variables, **kwargs)[source]
reset(namespace=None, **kwargs)[source]
run_cell(*args, **kwargs)[source]
run_code(code_obj)[source]
update(namespace, **kwargs)[source]
core.interpreter.ipython.Interpreter

alias of IPythonInProcessInterpreter

core.interpreter.ipython.showtraceback(self, exc_tuple=None, filename=None, tb_offset=None, exception_only=False)[source]

Display the exception that just occurred.

If nothing is known about the exception, this is the method which should be used throughout the code for presenting user tracebacks, rather than directly invoking the InteractiveTB object.

A specific showsyntaxerror() also exists, but this method can take care of calling it if needed, so unless you are explicitly catching a SyntaxError exception, don't try to analyze the stack manually and simply call this method.

Previous topic

core.interpreter package

Next topic

<no title>

This Page