def _html_checker(job_var, interval, status, header,<EOL>_interval_set=False):
job_status = job_var.status()<EOL>job_status_name = job_status.name<EOL>job_status_msg = job_status.value<EOL>status.value = header % (job_status_msg)<EOL>while job_status_name not in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>time.sleep(interval)<EOL>job_status = job_var.status()<EOL>job_status_name = job_status.name<EOL>job_status_msg = job_status.value<EOL>if job_status_name == '<STR_LIT>':<EOL><INDENT>break<EOL><DEDENT>else:<EOL><INDENT>if job_status_name == '<STR_LIT>':<EOL><INDENT>job_status_msg += '<STR_LIT>' % job_var.queue_position()<EOL>if not _interval_set:<EOL><INDENT>interval = max(job_var.queue_position(), <NUM_LIT:2>)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if not _interval_set:<EOL><INDENT>interval = <NUM_LIT:2><EOL><DEDENT><DEDENT>status.value = header % (job_status_msg)<EOL><DEDENT><DEDENT>status.value = header % (job_status_msg)<EOL>
Internal function that updates the status
    of a HTML job monitor.

    Args:
        job_var (BaseJob): The job to keep track of.
        interval (int): The status check interval
        status (widget): HTML ipywidget for output ot screen
        header (str): String representing HTML code for status.
        _interval_set (bool): Was interval set by user?