@blueprint.route('/<job_id>.json', methods=['GET'])
@blueprint.route('/<job_id>', methods=['GET'])
def show(job_id):
    job = scheduler.get_job(job_id)
    if job is None:
        raise werkzeug.exceptions.NotFound('Job not found')

    if request_wants_json():
        return flask.jsonify(job.json_dict(True))
    else:
        if isinstance(job, model_images.ImageClassificationModelJob):
            return model_images.classification.views.show(job)
        elif isinstance(job, model_images.GenericImageModelJob):
            return model_images.generic.views.show(job)
        else:
            raise werkzeug.exceptions.BadRequest(
                    'Invalid job type')
Alias for :attr:`is_xhr`. "Ajax" is not the right term.
dataset/ETHPy150Open NVIDIA/DIGITS/digits/model/views.py/show--crossover with--dataset/ETHPy150Open Arelle/Arelle/arelle/webserver/bottle.py/BaseRequest.is_ajax