Datalore 2024.4 Help

Add notebook files

The procedures in this article explain how to attach files to a notebook. For example, you're working on a specific notebook in the editor, and there are several files you want to use in the code.

  • These files will be available through the Attached data tool in the Notebook files category.

  • To use such files in your code, it is enough to specify their file name.

  • When added to the notebook, these files are not added to the resources of the respective workspace and not available for the other notebooks this workspace has. To make them available for other notebooks, move or copy them to the respective workspace.

Procedures

Upload files as notebook attachments

The procedure adds files from your local file system or a URL to the attached data of a selected notebook.

  1. Open the Attached data from the left-hand sidebar of the editor.

  2. Click the plus icon on the toolbar of the Files tab.

    Uploading files or folder
  3. Use one of the options:

    • To upload individual files, select Upload files and use the file browser to select files to upload.

    • To upload a folder, select Upload folder and use the file browser to select a folder to upload.

Quick file upload

The quickest way to add a file to your notebook and start using it in the code is to drag it from your file system and drop it anywhere in the editor.

This will automatically add the file to the notebook files that you can find in the Attached data tool.

    Create files

    Create files for notebook attachments

    The procedure creates text-based files (CSV, TSV, and other formats) as source files for your notebook.

    1. Open the Attached data from the left-hand sidebar of the editor.

    2. Click the plus icon on the toolbar of the Files tab.

      Uploading files or folder
    3. Select New file from the menu.

      This will add a file called New file.

    4. Provide a name for the new file and specify its extension. You can create any text-based file (CSV, TSV, and other formats).

    5. To open and edit the file in the text editor, double-click it. The changes that you make are saved automatically every ten seconds or on the explicit ⌘+S action.

    Results and further actions

    • The added files are automatically attached to the notebook and can be used in its code. Refer to this topic to learn how to view and use files attached to a notebook.

    • To manage files attached to a notebook, refer to this topic.

    Keywords

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

    Last modified: 21 November 2024