def experiment_status(args):
    '''Show the status of experiment'''
    nni_config = Config(get_config_filename(args))
    rest_port = nni_config.get_config('restServerPort')
    result, response = check_rest_server_quick(rest_port)
    if not result:
        print_normal('Restful server is not running...')
    else:
        print(json.dumps(json.loads(response.text), indent=4, sort_keys=True, separators=(',', ':')))
def experiment_status ( args ) : nni_config = Config ( get_config_filename ( args ) ) rest_port = nni_config . get_config ( 'restServerPort' ) result , response = check_rest_server_quick ( rest_port ) if not result : print_normal ( 'Restful server is not running...' ) else : print ( json . dumps ( json . loads ( response . text ) , indent = 4 , sort_keys = True , separators = ( ',' , ':' ) ) )
Show the status of experiment