更新 Snowflake Native App 的默认 Streamlit 版本(待定)

注意

此行为变更在 2025_01 捆绑包中。

有关捆绑包的当前状态,请参阅 捆绑包历史记录

启用此行为变更捆绑包后,Snowflake Native App Framework 所用 Streamlit 的默认版本将更新为 Streamlit 版本 1.35。

此变更之前:

Snowflake Native App 使用的 Streamlit 的默认版本是 1.22 版

此变更之后:

Snowflake Native App 使用的 Streamlit 的默认版本是 1.35 版

此变更仅影响未定义特定 Streamlit 版本的应用程序。如果提供商使用 environment.yml 文件控制依赖项版本,则可以设置 streamlit=1.22.0,将应用程序所用的 Streamlit 版本固定到特定版本。如果 environment.yml 文件中未指定版本,则使用 Streamlit 的默认版本。

此变更仅影响应用程序的新版本或补丁。现有应用程序将继续使用以前的默认 Streamlit 版本 (1.22) 或应用程序的 environment.yml 文件中指定的版本。

此变更仅影响 Snowflake Native App 内使用的 Streamlit 应用程序。应用程序外部的 Streamlit 应用程序不受影响。Snowflake 中 Streamlit 的默认版本已更新为 Streamlit 版本 1.35。

在您的应用程序中测试新版本的 Streamlit

如果您计划使用 Streamlit 1.35,请务必测试您的应用程序,以验证它是否与此版本兼容:

  1. 将应用程序 environment.yml 文件中的 Streamlit 版本更新为 1.35。请勿进行任何其他更改。

  2. 安装应用程序。

  3. 测试 Streamlit 应用程序并对 Streamlit python 源文件进行任何必要的更改。

如果您发现更新版本存在任何问题,您可以在 environment.yml 文件中指定之前版本的 Streamlit。

参考:1857

语言: 中文