Esempio n. 1
0
def get_shell_class():
    """
    :return: the shell class to instantiate
    """

    if has_ipython() and has_full_deps():
        # Test IPython
        from openalea.oalab.shell import ShellWidget
        return ShellWidget

    else:
        # Test QScintilla
        try:
            from scishell import SciShell
            return SciShell

        except ImportError:
            return PyCutExt
Esempio n. 2
0
def test_has_ipython():
	assert has_ipython()
Esempio n. 3
0
def test_has_ipython():
    assert has_ipython()