def public_host(app):
 if app.subdomain_host:
  return app.subdomain_host
 else:
  return app.proxy.public_server.host

def public_host ( app ) : if app . subdomain_host : return app . subdomain_host else : return app . proxy . public_server . host
return the public *host* of the given jupyterhub instance .