solvebio/cli/ipython.py
def launch_ipython_shell(args):  # pylint: disable=unused-argument
    """Open the SolveBio shell (IPython wrapper)"""
    try:
        import IPython  # noqa
    except ImportError:
        _print("The SolveBio Python shell requires IPython.\n"
               "To install, type: 'pip install ipython'")
        return False

    if hasattr(IPython, "version_info"):
        if IPython.version_info > (5, 0, 0, ''):
            return launch_ipython_5_shell(args)

    _print("WARNING: Please upgrade IPython (you are running version: {})"
           .format(IPython.__version__))
    return launch_ipython_legacy_shell(args)
def launch_ipython_shell(args):  # pylint: disable=unused-argument
    """Open the SolveBio shell (IPython wrapper)"""
    try:
        import IPython  # noqa
    except ImportError:
        _print("The SolveBio Python shell requires IPython.\n"
               "To install, type: 'pip install ipython'")
        return False

    if hasattr(IPython, "version_info"):
        if IPython.version_info > (5, 0, 0, ''):
            return launch_ipython_5_shell(args)

    _print("WARNING: Please upgrade IPython (you are running version: {})"
           .format(IPython.__version__))
    return launch_ipython_legacy_shell(args)
Open the SolveBio shell (IPython wrapper)