Add data to an existing trace using fileopt='extend'

I’m streaming sensors data from iot devices like gyroscope, accelerometer, etc. For example, Sensor data streaming with Arduino. It’s pretty fast but in JavaScript. I wonder how can this be implemented in the Python package.

Edit:
Github Source
He essentially Initializes a graph with Plotly.plot and Plotly.update the graph with new data coming out of the sensors, at the speed of roughly 20~30 fps.