@line_magic<EOL><INDENT>def qiskit_backend_monitor(self, line='<STR_LIT>', cell=None):  <DEDENT>
backend = self.shell.user_ns[line]<EOL>if not isinstance(backend, IBMQBackend):<EOL><INDENT>raise QiskitError('<STR_LIT>')<EOL><DEDENT>title_style = "<STR_LIT>"<EOL>title_style += "<STR_LIT>"<EOL>title_html = "<STR_LIT>".format(<EOL>style=title_style, name=backend.name())<EOL>details = [config_tab(backend)]<EOL>tab_contents = ['<STR_LIT>']<EOL>if not backend.configuration().simulator:<EOL><INDENT>tab_contents.extend(['<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>'])<EOL>details.extend([qubits_tab(backend), gates_tab(backend),<EOL>detailed_map(backend), job_history(backend)])<EOL><DEDENT>tabs = widgets.Tab(layout=widgets.Layout(overflow_y='<STR_LIT>'))<EOL>tabs.children = details<EOL>for i in range(len(details)):<EOL><INDENT>tabs.set_title(i, tab_contents[i])<EOL><DEDENT>title_widget = widgets.HTML(value=title_html,<EOL>layout=widgets.Layout(margin='<STR_LIT>'))<EOL>backend_monitor = widgets.VBox([title_widget, tabs],<EOL>layout=widgets.Layout(border='<STR_LIT>',<EOL>max_height='<STR_LIT>', min_height='<STR_LIT>',<EOL>overflow_y='<STR_LIT>'))<EOL>display(backend_monitor)<EOL>
A Jupyter magic function to monitor backends.