第2章 安装指南
安装
前置条件:macOS Sonoma 或更高版本,或 Windows 10/11。暂不支持 Linux。
开始使用请下载安装 Plotly Studio。 打开 Plotly Studio 后,你可以使用 Plotly Cloud 或 Dash Enterprise 账号登录。 Plotly Cloud 若使用 Plotly Cloud 登录,Plotly Studio 将采用 Plotly 默认模型(Claude Sonnet 4.5 和 Claude Haiku 4.5)进行应用生成。你发布的应用将托管在 Plotly Cloud 上,并可通过 Plotly Cloud 界面管理。 若尚未拥有 Dash Enterprise 实例,使用 Plotly Cloud 是最快速的上手方式。 要在 Plotly Studio 中使用 Plotly Cloud:
* 打开 Plotly Studio 并点击登录。Plotly Cloud 会在浏览器中打开。 * 若没有 Plotly Cloud 账号,请选择注册创建。 * 完成 Plotly Cloud 认证并返回 Plotly Studio。
Dash Enterprise 若使用 Dash Enterprise 登录,Plotly Studio 将使用由管理员配置的私有 AI 代理。你发布的应用将托管在 Dash Enterprise 实例上,并可通过 Dash Enterprise 界面管理。
了解 Dash Enterprise | 定价 | Dash Enterprise 演示
配置 AI 代理应用(必需) 适用于 Dash Enterprise 管理员 要在 Dash Enterprise 中使用 Plotly Studio,必须先配置 AI 代理应用。请联系支持团队获取配置详情。若组织已接入 LLM 提供商,配置 AI 代理应用通常只需不到一小时。 配置自定义 Python 包索引(可选) Plotly Studio 启动时会从 Python Package Index (PyPI) 安装所需的 Python 包。若组织使用私有包索引,可配置 Plotly Studio 使用它替代 PyPI。此配置需在启动 Plotly Studio 前完成。 配置自定义 Python 包索引的方法:
* 在用户主目录创建名为 PLOTLY_STUDIO_CONFIG 的文件:
macOS Windows
* /Users/
* 在文件中添加以下行,并将 URL 替换为私有包索引地址:
UV_INDEX=
命令行快捷方式 通过一条命令创建并写入文件: macOS: echo "UV_INDEX=https://pypi.example.com/" > ~/PLOTLY_STUDIO_CONFIG Windows (PowerShell): "UV_INDEX=https://pypi.example.com/" | Out-File "$env:USERPROFILE\PLOTLY_STUDIO_CONFIG"
登录 前置条件
* Dash Enterprise 管理员已在 Dash Enterprise 中配置好 AI 代理应用。 * 拥有 Dash Enterprise 许可证席位。 * 若组织使用私有包索引,需已配置完成。
要在 Plotly Studio 中使用 Dash Enterprise:
* 打开 Plotly Studio 并选择使用 Dash Enterprise 登录。 * 输入用于登录 Dash Enterprise 实例的 URL,例如 https://dash.yourcompany.com。 * 选择登录至 Dash Enterprise。系统将重定向至 Dash Enterprise 登录界面。 * 输入 Dash Enterprise 凭证并点击登录。 * 选择“是”授权登录,并返回 Plotly Studio。 * 输入 AI 代理 URL(例如 https://dash.yourcompany.com/ai-proxy-app)并点击测试并完成设置。
设置 登录后,可通过 Plotly Studio 的设置菜单访问计费及账户信息,以及已发布的应用。
网络要求 Plotly Studio 需访问以下域名。若组织使用防火墙或代理,请确保这些域名可访问。
域名 | 用途 | 备注 *.plotly.com | 可观测性、监控及文档 | *.pypi.org | 下载 Python 依赖 | 若使用自定义 Python 包索引则不需要 *.pythonhosted.org | 下载 Python 依赖 | 若使用自定义 Python 包索引则不需要 *.amazonaws.com | 应用更新 | 若使用无自动更新功能的 Plotly Studio 版本则不需要 *.plotly.app | AI 服务及云部署 | 仅在将 Plotly Studio 与 Plotly Cloud 一起使用时需要 *.workos.com | 认证 | 仅在将 Plotly Studio 与 Plotly Cloud 一起使用时需要 *.amplitude.com | 分析及抢先体验新功能 | 在 Dash Enterprise 中不用于分析