更新 Snowflake Native App 的默认 Streamlit 版本¶
Attention
This behavior change is in the 2025_01 bundle.
For the current status of the bundle, refer to Bundle History.
When this behavior change bundle is enabled, the default version of a Streamlit used by the Snowflake Native App Framework will be updated to Streamlit version 1.35.
- Before this change:
Snowflake Native App 使用的 Streamlit 的默认版本是 1.22 版
- After this change:
Snowflake Native App 使用的 Streamlit 的默认版本是 1.35 版
This change only affects apps that do not define a specific Streamlit version. If a provider uses the
environment.yml file to control dependency versions, the Streamlit version used by an app can be
pinned to a specific version by setting streamlit=1.22.0. If a version is not specified in the
environment.yml file, then the default version of Streamlit is used.
This change only affects new versions or patches of an app. Existing apps will continue to work on either the previous
default Streamlit version (1.22) or the version specified in the environment.yml file of the app.
此变更仅影响 Snowflake Native App 内使用的 Streamlit 应用程序。应用程序外部的 Streamlit 应用程序不受影响。Snowflake 中 Streamlit 的默认版本已更新为 Streamlit 版本 1.35。
在您的应用程序中测试新版本的 Streamlit¶
如果您计划使用 Streamlit 1.35,请务必测试您的应用程序,以验证它是否与此版本兼容:
- Update the Streamlit version in the
environment.ymlfile of the app to 1.35. Do not make any other changes.- 安装应用程序。
- 测试 Streamlit 应用程序并对 Streamlit python 源文件进行任何必要的更改。
If you discover any issues with the updated version, you can specify the previous version of Streamlit in the
environment.yml file.
参考:1857