less than 1 minute read

Today I learnt about Shiny for Python, a way to make slick web apps in Python. I had a vague knowledge of streamlit, where the general idea is to write a script in Python, and then turn it into a web app at a later date by adding extra streamlit commands. However, as explained in this talk, the entire (potentially costly) script needs to be re-run to refresh the web page.

Instead, Shiny (originally written for the R language) asks the user to design the web app from the start, rather than modifying an existing script. This is done by decorating the necessary functions, so that only they will be re-run. This type of reactive programming opens up a range of technical possibilities… The Shiny gallery includes a Wordle clone and ChatGPT playing 20 questions with itself, but mind was particularly blown by the 3D graph demo in this video: