使用工作区对象Work with workspace objects

本文介绍如何使用文件夹和其他工作区对象。This article explains how to work with folders and other workspace objects.

文件夹Folders

文件夹包含工作区中的所有静态资产:笔记本、库、试验和其他文件夹。Folders contain all static assets within a workspace: notebooks, libraries, experiments, and other folders. 图标指示文件夹中包含的对象的类型。Icons indicate the type of the object contained in a folder. 单击文件夹名称以打开或关闭该文件夹,并查看其内容。Click a folder name to open or close the folder and view its contents.

打开文件夹Open folder

若要对文件夹执行操作,请单击To perform an action on a folder, click the 文件夹右侧的 向下插入符,然后选择菜单项。at the right side of a folder and select a menu item.

文件夹菜单Folder menu

特殊文件夹Special folders

Azure Databricks 工作区包括三个特殊文件夹:工作区、共享和用户。An Azure Databricks workspace has three special folders: Workspace, Shared, and Users. 无法重命名或移动特殊文件夹。You cannot rename or move a special folder.

工作区根文件夹Workspace root folder

若要导航到工作区根文件夹:To navigate to the Workspace root folder:

  1. 安装完成后,单击Click the 工作区图标 or 主页图标 来折叠导航窗格。icon.
  2. 安装完成后,单击Click the 向左滚动图标 来折叠导航窗格。icon.

工作区根文件夹是组织中所有 Azure Databricks 静态资产的容器。The Workspace root folder is a container for all of your organization’s Azure Databricks static assets.

工作区根目录

在工作区根文件夹内:Within the Workspace root folder:

  • 共享图标“共享”用于在组织中共享对象。Shared Icon Shared is for sharing objects across your organization. 所有用户都对“共享”中的所有对象拥有完全权限。All users have full permissions for all objects in Shared.
  • 用户图标“用户”包含每个用户的文件夹。Users Icon Users contains a folder for each user.

默认情况下,工作区根文件夹及其包含的所有对象对所有用户都可用。By default, the Workspace root folder and all of its contained objects are available to all users. 你可以通过启用工作区访问控制,并设置权限来控制谁可以管理和访问对象。You can control who can manage and access objects by enabling workspace access control and setting permissions.

若要在所有文件夹中按字母顺序或按类型对所有对象进行排序,请单击工作区文件夹右侧的向下插入符,并选择“排序> [字母顺序 | 类型]”:To sort all objects alphabetically or by type across all folders, click the Down Caret to the right of the Workspace folder and select Sort > [Alphabetical | Type]:

工作区排序

用户主文件夹 User home folders

每个用户在其笔记本和库中都有一个主文件夹:Each user has a home folder for their notebooks and libraries:

工作区 > 主文件夹

如果已启用工作区访问控制,则默认情况下,此文件夹中的对象是该用户的专用对象。If workspace access control is enabled, by default objects in this folder are private to that user.

备注

如果删除用户,则会保留用户的主文件夹。When you remove a user, the user’s home folder is retained.

工作区对象操作 Workspace object operations

工作区根文件夹中存储的对象是文件夹笔记本试验The objects stored in the Workspace root folder are folders, notebooks, libraries, and experiments. 若要对工作区对象执行操作,请右键单击该对象,或单击对象右侧的菜单下拉列表To perform an action on a Workspace object, right-click the object or click the Menu Dropdown at the right side of an object.

对象菜单Object menu

从下拉菜单中,你可以:From the drop-down menu you can:

  • 如果对象是文件夹:If the object is a folder:
  • 克隆对象。Clone the object.
  • 重命名对象。Rename the object.
  • 将对象移动到另一文件夹。Move the object to another folder.
  • 将对象移动到回收站。Move the object to Trash. 请参阅删除对象See Delete an object.
  • 将文件夹或笔记本导出为 Databricks 存档。Export a folder or notebook as a Databricks archive.
  • 如果对象是笔记本,请复制笔记本的文件路径。If the object is a notebook, copy the notebook’s file path.
  • 如果已启用工作区访问控制,请在对象上设置权限。If you have Workspace access control enabled, set permissions on the object.

对象的搜索工作区 Search workspace for an object

若要在工作区中搜索对象,请单击侧边栏中的搜索图标搜索图标,然后在“搜索工作区”字段中键入搜索字符串。To search the workspace for an object, click the Search icon Search Icon in the sidebar and type a search string in the Search Workspace field. 键入时,会列出其名称包含搜索字符串的对象。As you type, objects whose name contains the search string are listed.

搜索字符串匹配项Search string matches

访问最近使用过的对象 Access recently used objects

可以通过单击“最近使用”图标来访问最近使用过的对象You can access recently used objects by clicking the Recents icon “最近使用”图标 位于工作区登陆页上的侧边栏或“最近使用”列中。in the sidebar or the Recents column on the workspace landing page.

备注

删除浏览器缓存和 cookie 后,会清除“最近使用”列表。The Recents list is cleared after deleting the browser cache and cookies.

移动对象 Move an object

若要移动对象,可以拖放对象,或者单击菜单下拉列表或对象右侧的向下插入符,然后选择“移动”:To move an object, you can drag-and-drop the object or click the Menu Dropdown or Down Caret at the right side of the object and select Move:

移动对象Move object

若要将文件夹中的所有对象移动到其他文件夹,请在源文件夹上选择“移动”操作,然后选择“移动 内的所有项,而不是文件夹本身”复选框 。To move all the objects inside a folder to another folder, select the Move action on the source folder and select the Move all items in ‘’ rather than the folder itself checkbox.

移动文件夹内容Move folder contents

删除对象 Delete an object

若要删除文件夹、笔记本、库或试验,请单击菜单下拉列表或对象右侧的向下插入符,然后选择“移至回收站”。To delete a folder, notebook, library or experiment, click the Menu Dropdown or Down Caret at the right side of the object and select Move to Trash. 30 天后,回收站文件夹会自动清空(清除)。The Trash folder is automatically emptied (purged) after 30 days.

你可以通过选择对象右侧的菜单下拉列表然后选择“立即删除”,以永久删除回收站中的对象。You can permanently delete an object in the Trash by selecting the Menu Dropdown to the right of the object and selecting Delete Immediately.

立即删除Delete immediately

你可以通过选择回收站文件夹右侧的菜单下拉列表然后选择“清空回收站”,以永久删除回收站中的对象。You can permanently delete all objects in the Trash by selecting the Menu Dropdown to the right of the Trash folder and selecting Empty Trash.

清空回收站Empty trash

还原对象Restore an object

通过将对象从回收站文件夹拖到其他文件夹You restore an object by dragging it from the 回收站 来还原对象。Trash folder to another folder.