跳转至

Code Workspaces(代码工作区(Code Workspaces))

In a workspace application, how can I add dependencies like dash-core-components and plotly?

Dependencies from your JupyterLab® code workspace are automatically available in your published application using managed Conda/PyPi environments. Review managed Conda/PyPi environments for more information.

:::callout{theme="error"} Adding dependencies to applications through the environment.yml file at the root of your repository is now deprecated. Please migrate to managed Conda/PyPi environments. We will attempt to migrate your environment.yml file automatically when you restart your workspace after you enable this feature. :::

Timestamp: Sept 24, 2024

Why do Jupyter® notebooks disappear between workspace restarts, and how can this issue be prevented?

Jupyter® notebooks may disappear between workspace restarts if changes are not synced before restarting or if there is a failure in restoring from a checkpoint. The issue can be prevented by ensuring changes are regularly synced and by verifying the upload of checkpoints through workspace logs. Additionally, it is important to note that checkpoints get deleted after 30 days, so regular syncing is crucial to avoid losing work.

Timestamp: March 6, 2024


中文翻译


代码工作区(Code Workspaces)

在工作区应用中,如何添加 dash-core-componentsplotly 等依赖项?

JupyterLab® 代码工作区中的依赖项会自动通过受管理的 Conda/PyPi 环境(managed Conda/PyPi environments)在已发布的应用中生效。更多信息请参阅受管理的 Conda/PyPi 环境

:::callout{theme="error"} 通过仓库根目录下的 environment.yml 文件向应用添加依赖项的方式现已弃用。请迁移至受管理的 Conda/PyPi 环境。启用此功能后,重新启动工作区时,系统将尝试自动迁移您的 environment.yml 文件。 :::

时间戳: 2024年9月24日

为什么 Jupyter® 笔记本会在工作区重启后消失?如何避免此问题?

如果重启前未同步更改,或从检查点(checkpoint)恢复时出现故障,Jupyter® 笔记本可能会在工作区重启后消失。可通过以下方式避免此问题:确保定期同步更改,并通过工作区日志验证检查点是否成功上传。此外需注意,检查点会在30天后自动删除,因此定期同步对避免工作丢失至关重要。

时间戳: 2024年3月6日