Tell me, is it possible to draw animated graphs in Jupyter, such as the processor loading schedule in real time? I'm trying to monitor the server response time to the ping. I deal with MatPlotlib, but it doesn’t know how, or I didn’t find it:
Import SUBPROCESS Import Re from matplotlib import pyplot as plate def ping ( adress ): p = subprocess.popen ([ "Ping.exe" ", adress], stdout = subprocess.pipe) out = p.communicate () [ 0 ] t = re.search ( r'Time = (\ d*) ', str (out)) time = t. grap (). Replace (' time = ', '' ) if t else '' 0 ' retu (Time) x = [ 0 ] %matplotlib inline for i in ( 0 , 10 ): x.ppend (ping (
question@mail.ru
·