openalea.core.interpreter package#

Submodules#

openalea.core.interpreter.ipython module#

class openalea.core.interpreter.ipython.IPythonInProcessInterpreter(**kwargs: Any)[source]#

Bases: 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]#
openalea.core.interpreter.ipython.Interpreter#

alias of IPythonInProcessInterpreter

openalea.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.

openalea.core.interpreter.python module#

class openalea.core.interpreter.python.Interpreter(locals=None)[source]#

Bases: InteractiveInterpreter

delete(varnames, **kwargs)[source]#
get(varnames, **kwargs)[source]#
push(variables, **kwargs)[source]#
reset(namespace=None, **kwargs)[source]#
run_cell(raw_cell, **kwargs)[source]#
run_code(code_obj)[source]#
update(namespace, **kwargs)[source]#
property user_ns#

Module contents#

OpenAlea.Core.

openalea.core.interpreter.adapt_interpreter(ip)[source]#
openalea.core.interpreter.get_interpreter()[source]#
openalea.core.interpreter.get_interpreter_class()[source]#
Returns:

the interpreter class to instantiate the shell