Datalore Help

Attached files

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

  2. To expand the list and view the attached files, click the respective category.

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

Upload files

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.

Create files

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

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

  3. Double-click the file to open and edit it in the expanded preview window in the upper-right corner of the editor.

    A .py file in the preview window
  4. Click Save to save the changes.

  5. (Optional) Click Close to hide the preview window.

Preview or edit attached files

You can preview the content of an attached file.

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

  2. (Optional) Edit the file using the preview window as a text editor and click Save to save the changes.

  3. Click Close.

Manage attached files

  • Use actions on a selected item:

    • 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:

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

      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.

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

Last modified: 28 November 2021