This short reference article shows how to stream data from a Flask web app to HTMX using server-side events (SSE).
There should be no such thing as boring mathematics.