def METHOD_NAME(self, line="", cell=None):
    """A Jupyter magic function to check the status of a Qiskit job instance."""
    import ipywidgets as widgets
    args = magic_arguments.parse_argstring(self.METHOD_NAME, line)
    if args.interval is None:
        args.interval = 2
        _interval_set = False
    else:
        _interval_set = True
    # Split cell lines to get LHS variables
    cell_lines = cell.split("\n")
    line_vars = []
    for cline in cell_lines:
        if "=" in cline and "==" not in cline:
            line_vars.append(cline.replace(" ", "").split("=")[0])
        elif ".append(" in cline:
            line_vars.append(cline.replace(" ", "").split("(")[0])
    # Execute the cell
    self.shell.ex(cell)
    # Look for all vars that are BaseJob instances
    jobs = []
    for var in line_vars:
        iter_var = False
        if "#" not in var:
            # The line var is a list or array, but we cannot parse the index
            # so just iterate over the whole array for jobs.
            if "[" in var:
                var = var.split("[")[0]
                iter_var = True
            elif ".append" in var:
                var = var.split(".append")[0]
                iter_var = True
            if iter_var:
                for item in self.shell.user_ns[var]:
                    if isinstance(item, qiskit.providers.job.Job):
                        jobs.append(item)
            else:
                if isinstance(self.shell.user_ns[var], qiskit.providers.job.Job):
                    jobs.append(self.shell.user_ns[var])
    # Must have one job class
    if not any(jobs):
        raise Exception("Cell must contain at least one variable of BaseJob type.")
    # List index of job if checking status of multiple jobs.
    multi_job = False
    if len(jobs) > 1:
        multi_job = True
    job_checkers = []
    # Loop over every BaseJob that was found.
    for idx, job_var in enumerate(jobs):
        style = "font-size:16px;"
        if multi_job:
            idx_str = "[%s]" % idx
        else:
            idx_str = ""
        header = f"<p style='{style}'>Job Status {idx_str}: %s </p>"
        status = widgets.HTML(value=header % job_var.status().value)
        thread = threading.Thread(
            target=_html_checker, args=(job_var, args.interval, status, header, _interval_set)
        )
        thread.start()
        job_checkers.append(status)
    # Group all HTML widgets into single vertical layout
    box = widgets.VBox(job_checkers)
    display(box)