Manage attached files
This article explains how you can manage notebook attachments and workspace files using the Attached data tool.
Open Attached files
- Go to Attached data icon on the sidebar. You can see two categories of attached files there:
or click the
Notebook files: lists the attachments of the opened notebook. These files can only be used in the notebook.
Workspace files: lists the files of the associated workspace. These files can be attached to any notebook from this workspace.
(Optional) If you are working from the default Home workspace, you must explicitly provide access to its files. Click Attach workspace files to view the attachments on the Workspace tab and use the data in the notebook.
Right-click the file you want to use in the code and select Copy path to clipboard.
Paste the copied path into your code.
Manage selected items
You have two ways to manage items on both tabs of the Attached data tool:
You can select an item and use the toolbar on top of the list.
You can right-click an item and use the popup menu.
These are the actions you can use on selected items:
|Download||The selected file is downloaded to your file system.|
|Unpack||The selected archived file is unpacked and added to the list.|
|Preview||The selected file is opened in the preview pane, which you can also use as a text editor. For files with the .py extension, the preview pane provides full code-editing support.|
|Delete||The selected item is permanently deleted from the list.|
|Rename||You can provide a new name for the selected item.|
|Copy path to clipboard||The copied path can be used to refer to the selected file in the code.|
|Move to workspace files (available in the popup menu only)||The selected item is now available on the Workspace tab. You can use it in any notebook from this workspace.|
|Move to notebook files (available in the popup menu only)||The selected item is now available on the Notebook tab. It can only be used in this notebook now.|
|Reload (available on the toolbar only)||The tab is refreshed to display any changes made to the attachment list.|
Create a folder
You can create a folder to store all or some of your notebook attachments or workspace files.
- Click the New folder icon on the toolbar in the upper-left corner of the tab.
Alternatively, you can right-click anywhere on the tab and select New folder from the popup menu. The new folder is added to the list on the selected tab.
(Optional) To provide a different name, right-click the newly added folder and select Rename.
Drag items to move them to and from the folder.