from qiskit import *
IBMQ.load_accounts(hub=None)

from qiskit.tools.monitor import job_monitor, backend_monitor, backend_overview

q = QuantumRegister(2)
c = ClassicalRegister(2)
qc = QuantumCircuit(q, c)

qc.h(q[0])
qc.cx(q[0], q[1])
qc.measure(q, c);

from qiskit.providers.ibmq import least_busy
backend = least_busy(IBMQ.backends(filters=lambda x: not x.configuration().simulator))
backend.name()

job1 = execute(qc, backend)
job_monitor(job1)

job2 = execute(qc, backend)
job_monitor(job2, interval=5)

backend_monitor(backend)

backend_overview()

