Avatar ·

How to animate the schedule?

📁 Advanced Python Topics, matplotlib, pip, jupyter

Tell me, is it possible to draw animated graphs in Jupyter, such as a processor load schedule in real time? I'm trying to monitor the server response time to ping. I work with Matplotlib, but it doesn't know how, or I didn't find it:

import subprocess
import re
from matplotlib import pyplot as plt
def ping(adress):
    p = subprocess.Popen(["ping.exe", adress], stdout=subprocess.PIPE)
    out = p.communicate()[0]
    t = re.search(r'Time=