def get_interpreter(): warn_deprecated(__name__ + ".get_interpreter", __name__ + 'interpreter', (2014, 10, 8)) from openalea.oalab.session.session import Session if Session.instantiated: return Session().interpreter else: interpreter_ = None try: from IPython.core.getipython import get_ipython interpreter_ = get_ipython() except(ImportError, NameError): pass if not interpreter_: interpreter_ = get_interpreter_class()() if interpreter_: return interpreter_
# -*- python -*- # # OpenAlea.Visualea: OpenAlea graphical user interface # # Copyright 2006-2009 - 2008 INRIA - CIRAD - INRA # # File author(s): Samuel Dufour-Kowalski <*****@*****.**> # Christophe Pradal <*****@*****.**> # # Distributed under the CeCILL v2 License. # See accompanying file LICENSE.txt or copy at # http://www.cecill.info/licences/Licence_CeCILL_V2-en.html # # OpenAlea WebSite : http://openalea.gforge.inria.fr # ################################################################################ from openalea.core.util import warn_deprecated warn_deprecated(__name__, 'openalea.oalab.shell.scishell', date=(2014, 9, 25)) from openalea.oalab.shell.scishell import SciShell
from openalea.core.util import warn_deprecated warn_deprecated(__name__ + '.new', 'oalab.core.service.control.new_control', (2014, 9, 25)) from openalea.core.service.control import new_control new = new_control
from openalea.core.util import warn_deprecated warn_deprecated(__name__, 'openalea.core.interpreter', date=(2014, 9, 25)) from openalea.core.interpreter import Interpreter, showtraceback
from openalea.core.util import warn_deprecated warn_deprecated(__name__, 'openalea.oalab.shell', date=(2014, 9, 25)) from openalea.oalab.shell import ShellWidget
# -*- python -*- # # OpenAlea.Visualea: OpenAlea graphical user interface # # Copyright 2006 - 2007 - 2008 INRIA - CIRAD - INRA # # File author(s): Samuel Dufour-Kowalski <*****@*****.**> # Christophe Pradal <*****@*****.**> # # Distributed under the CeCILL v2 License. # See accompanying file LICENSE.txt or copy at # http://www.cecill.info/licences/Licence_CeCILL_V2-en.html # # OpenAlea WebSite : http://openalea.gforge.inria.fr # ################################################################################ from openalea.core.util import warn_deprecated warn_deprecated(__name__, 'openalea.oalab.shell.streamredirection', date=(2014, 9, 25)) from openalea.oalab.shell.streamredirection import (GraphicalStreamRedirection, MultipleRedirection, NoneOutput, ThreadedRedirection, RedirectionEventId)
from openalea.core.util import warn_deprecated warn_deprecated(__name__, 'openalea.core.interpreter', date=(2014, 9, 25)) from openalea.core.interpreter.ipython import Interpreter, showtraceback from openalea.core.interpreter import adapt_interpreter adapt_interpreter(Interpreter)
from openalea.core.util import warn_deprecated warn_deprecated(__name__ + ".ControlWidgetSelectorPlugin", 'openalea.core.plugin.control.ControlWidgetSelectorPlugin', (2014, 10, 14)) from openalea.core.plugin.control import ControlWidgetSelectorPlugin
""" This module contains old packages. Main part of these packages are no more used and will be deleted soon """ from openalea.core.util import warn_deprecated warn_deprecated(__name__, 'new modules', (2014, 9, 25))
from openalea.core.util import warn_deprecated warn_deprecated(__name__+".ControlWidgetSelectorPlugin", 'openalea.core.plugin.control.ControlWidgetSelectorPlugin', (2014, 10, 14)) from openalea.core.plugin.control import ControlWidgetSelectorPlugin