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
def test_has_ipython(): assert has_ipython()