Datalore Help

Manage attached files

This article explains how you can manage notebook attachments and workspace files using the Attached data tool.

Open Attached files

  1. Go to Main menu | Tools | Attached data or click the Attached data icon on the sidebar. You can see two categories of attached files there:
    • 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.

  2. (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.

  3. Right-click the file you want to use in the code and select Copy path to clipboard.

  4. 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.

    Selecting preview action from toolbar

  • You can right-click an item and use the popup menu.

    Selecting preview action from popup menu

These are the actions you can use on selected items:

DownloadThe selected file is downloaded to your file system.
UnpackThe selected archived file is unpacked and added to the list.
PreviewThe 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.
DeleteThe selected item is permanently deleted from the list.
RenameYou can provide a new name for the selected item.
Copy path to clipboardThe 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.

  1. Click the New folder icon on the toolbar in the upper-left corner of the tab.
    New folder icon

    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.

  2. (Optional) To provide a different name, right-click the newly added folder and select Rename.

  3. Drag items to move them to and from the folder.

Last modified: 07 October 2021