Datalore 2021.1 Help


To work with data, you can add files from your file system or from an external URL source.

Quick file upload

This is the quickest way to add a file to your notebook and start using it in the code:

  1. Drag a file from your file system and drop it anywhere in the editor.

  2. To refer to the file in your code, use the file name.

    For example, the code below uses a file called 'libraries_by_python_version.csv'.

    libraries = pd.read_csv('libraries_by_python_version.csv') libraries

Use previously uploaded data

To access the data of already uploaded notebook attachments or workspace files, do the following:

  1. Go to Main menu | Tools | Attached files or click the Attached files icon on the sidebar. The tool contains two tabs:
    • Notebook: lists the attachments of the opened notebook. These files can only be used in the notebook.

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

Last modified: 06 April 2021