Implications of fixing streamlit version in requirements.txt

Hi!

Looking at past posts, I have seen several example of streamlit introducing “breaking changes” (like changing the name of some divs in the UI) and I wanted to know if I could make the app more reliable by setting a fixed version for streamlit in requirements.txt. The idea is that I want to minimize the chance that 5 years from now the app will unexpectedly break.

I think 5 years is a long expectation to keep an app without maintenance. For starters, you will be running a Python version that has reached its end-of-life.

But it is not uncommon to freeze (aka lock) your requirements.txt, i.e., not only the Streamlit version but all other dependencies to ensure compatibility.

1 Like