def has_ipython(version='3.0'):
 version = str(version)
 try:
  import IPython
 except Exception:
  return (False, 'IPython library not found')
 else:
  if (LooseVersion(IPython.__version__) >= LooseVersion(version)):
   return (True, 'IPython present')
  else:
   message = ('current IPython version: (%s) is older than expected version: (%s)' % (IPython.__version__, version))
   return (False, message)

def has_ipython ( version = '3.0' ) : version = str ( version ) try : import IPython except Exception : return ( False , 'IPython library not found' ) else : if ( LooseVersion ( IPython . __version__ ) >= LooseVersion ( version ) ) : return ( True , 'IPython present' ) else : message = ( 'current IPython version: (%s) is older than expected version: (%s)' % ( IPython . __version__ , version ) ) return ( False , message )
function that checks the presence of ipython .