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. Upload files here if you want to use it only in this notebook.
Workspace files: lists the files of the associated workspace. Upload files here if you want to use it in any notebook from this workspace.
To expand the list and view the attached files, click the respective category.
(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 and use the data in the notebook.
The following procedures are the same for both categories.
You have the following options:
Upload files from your file system:
Click Upload files.
In the file browser window, select the file or several files that you want to upload and click Open.
Upload a folder:
Click the arrow next to Upload.
Select Upload folder from the list.
In the file browser window, select the folder that you want to upload and click Upload.
Upload files from a URL:
Click the arrow next to Upload files.
Select Upload from URL from the list.
In the Upload from url dialog, provide the URL that you want to use and click OK.
Click the New file icon on the toolbar in the upper left corner of the list.
Alternatively, you can right-click anywhere in the list area and select New file from the popup menu. The new file is added to the list.
Right-click the newly added file and select Rename to provide a name and specify an extension. You can create any text-based file (CSV, TSV, and other formats).
Double-click the file to open and edit it in the expanded preview window in the upper right corner of the editor.
Click Save to save the changes.
(Optional) Click Close to hide the preview window.
Preview or edit attached files
You can preview the content of an attached file.
Double-click the file that you want to preview. The file will be opened in the expanded preview window on the right side of the editor.
(Optional) Edit the file using the preview window as a text editor and click Save to save the changes.
Manage attached files
Create a folder to store all or some of your attached 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.
Drag items to move them to and from the folder.
Use actions on a selected file or folder:
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.
Download as .zip: The selected folder is downloaded to your file system as a .zip file.
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 file path: 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.