def online_help(query):
 from .extern.six.moves.urllib.parse import urlencode
 import webbrowser
 version = __version__
 if ('dev' in version):
  version = 'latest'
 else:
  version = ('v' + version)
 url = 'http://docs.astropy.org/en/{0}/search.html?{1}'.format(version, urlencode({'q': query}))
 webbrowser.open(url)

def online_help ( query ) : from . extern . six . moves . urllib . parse import urlencode import webbrowser version = __version__ if ( 'dev' in version ) : version = 'latest' else : version = ( 'v' + version ) url = 'http://docs.astropy.org/en/{0}/search.html?{1}' . format ( version , urlencode ( { 'q' : query } ) ) webbrowser . open ( url )
search the online astropy documentation for the given query .