Components
Locking Package Versions in Streamlit Apps Deployed from Code
We’ve added the Freeze Version option in Data Apps, allowing you to lock Python package versions for stability.

You can now lock package versions in Streamlit applications deployed from code in Keboola, ensuring stability, reproducibility, and easier debugging.
Locking Package Versions for Stability and Consistency
Managing package versions is crucial to preventing unexpected updates and compatibility issues in your Streamlit applications. With this update, you can:
- Upload a requirements.txt file to define package versions


- Enable version freezing to lock dependencies in your Data App state


- Use the update dependencies option to refresh package versions when needed

How It Works
- Create and Upload
requirements.txt
- Manually define package versions or generate the file using
pip freeze > requirements.txt
- Upload it through the Keboola UI before deploying your app
- Manually define package versions or generate the file using
- Enable Version Freezing
- Toggle the Freeze versions option in the UI to lock package versions for future redeployments
- Update Package Dependencies When Needed
- Use the Update packages dependencies toggle to refresh to the latest package versions
These improvements help you maintain a predictable environment, streamline debugging, and ensure your Streamlit applications run smoothly.