It keeps running your render method and dynamically updates your client.
The first example documents this a bit better: https://gitlab.com/BenWiser/python-live-gui/-/blob/main/exam...