def get_kernelspecs():
    'Fetches the set of kernelspecs from the gateway, returning a dict of configured kernel specs'
    end_point = '{}/api/kernelspecs'.format(gateway_host)
    logger.info("Fetching kernelspecs from '{}' ...".format(end_point))
    resp = requests.get(end_point)
    if (not resp.ok):
        raise requests.exceptions.HTTPError('Gateway server response: {}'.format(resp.status_code))
    return resp.json()
Fetches the set of kernelspecs from the gateway, returning a dict of configured kernel specs
def get_kernelspecs():
    
    end_point = '{}/api/kernelspecs'.format(gateway_host)
    logger.info("Fetching kernelspecs from '{}' ...".format(end_point))
    resp = requests.get(end_point)
    if (not resp.ok):
        raise requests.exceptions.HTTPError('Gateway server response: {}'.format(resp.status_code))
    return resp.json()