Datalore 2024.4 Help

Manage files attached to a notebook

The article explains how to manage files attached to a notebook in the Attached data tool. You can access them in:

  • Notebook files: they are stored in the notebook attachments (/data/notebook_files directory).

  • Workspace files: they are stored in the respective workspace attachments (/data/workspace_files directory)

  • Cloud storage data sources: they are stored in the cloud storage (/data/[cloud_storage_name] directory)

Explore attached file sources

  1. Open the Attached data from the left-hand sidebar of the editor. On the Files tab, you will see all files attached to the notebook.

  2. To copy the path to a file directory, click the settings icon and select the Copy directory path option.

    Copying directory path

Stay on the Files tab to perform the procedures below for managing files attached to this notebook.

Attach Private workspace files

Files uploaded to the default Private workspace are not automatically attached to its notebooks, unlike files from other workspaces. Perform the following steps to attach them.

  1. Expand the Private workspaces files list.

  2. Click the Attach Private workspace files button.

Attaching Private workspace files

Create a folder

Create folders to group attached files.

  1. Select where you want to create a folder:

    • For the notebook attached files, stay on the Files tab.

    • For the respective workspace, expand the list of workspace files on the Files tab.

    • For a cloud storage, switch to the Cloud storages tab and click the required cloud storage to expand it in detail view.

  2. Open the menu of file adding options:

    • On the Files tab: Click the plus icon on the toolbar.

      Uploading files or folder
    • On the Cloud storages tab, click the ellipsis for the cloud storage you opened in detail view.

      Uploading files to cloud storage
  3. Select New folder from the menu. This will add a folder called New folder.

  4. Provide a name for the new folder.

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

Manage attached files

  • Right-click the file you want to manage. Alternatively, you can click the ellipsis for the respective item.

    Selecting preview action from popup menu
  • Choose your option:

    • Download: The selected file is downloaded to your file system.

    • Unpack: The selected archived file is unpacked and added to the list.

    • Open: The selected file is opened in the 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.

    • Preview (for .ipynb): The selected .ipynb file is opened in a new browser tab for preview. You can also open the file by double-clicking it.

    • Move to workspace files: The selected item is moved to the respective workspace files. You can use it in any notebook from this workspace.

    • Move to notebook files: The selected item is moved to the notebook files. It can only be used in this notebook now.

    • Copy to workspace files: The selected item is copied to the respective workspace files. You can use it in any notebook from this workspace.

    • Copy to notebook files: The selected item is copied to the notebook files.

  • To refresh the list of files, click the refresh icon on the toolbar.

Keywords

upload files, attach files, add files, data sources, data, data files, notebook attachments, notebook files, attached files, manage files

Last modified: 11 November 2024