This short reference article shows how to stream data from a Flask web app to HTMX using server-side events (SSE).
Today I learned how to use JavaScript functions in PyScript.
Today I learned about PyScript, a tool that lets you run Python in your HTML!
You didn't ask, but let me tell you I learned a lot of maths over at KhanAcademy.