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.

Locking Package Versions in Streamlit Apps Deployed from Code

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

  1. 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
  2. Enable Version Freezing
    • Toggle the Freeze versions option in the UI to lock package versions for future redeployments
  3. 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.

Check documentation for more information.