DataLab Docs
  • What is DataLab?
  • Work
    • Creating a workbook
    • Sharing a workbook
    • Managing a workbook
    • Code cell
      • Working with packages
    • Text cell
      • Including images
    • SQL cell
      • SQL scenarios
      • Parameterize your SQL query
    • Explore Data cell
    • Chart cell
      • Configuring your chart
      • Pivot charts
      • Migration guide
    • AI Assistant
    • Version history
    • Scheduled runs
    • Hiding and showing cells
    • Long-running cells
    • Report view
    • Environment variables
    • Git and GitHub
  • Connect to Data
    • Connect your data to DataLab
    • Sharing a Data Source
    • Airtable
    • Amazon Athena
    • Amazon S3
    • Databricks
    • Dropbox
    • Files
    • Google Drive
    • Google BigQuery
    • Google Sheets
    • MariaDB
    • Microsoft SQL Server
    • MongoDB
    • MotherDuck
    • MySQL
    • Oracle Database
    • PostgreSQL
    • Redshift
    • Snowflake
    • Supabase
  • Guides
    • Publish a notebook
    • Importing data from flat files
    • Resizing plots
    • Show Bokeh and Pyvis plots
  • Resources
    • Pricing
    • Manage group settings
    • Reporting for Group Admins
    • DataLab for education
    • Technical requirements
    • Addressing slow code
    • Address R vulnerability
    • Get help
Powered by GitBook
On this page
  • Set up a file data source
  • Query a files data source

Was this helpful?

  1. Connect to Data

Files

PreviousDropboxNextGoogle Drive

Last updated 8 months ago

Was this helpful?

A files data source allows you to share files in a read-only way between multiple workbooks within a single account context.

Set up a file data source

Select Data Sources in the sidebar and click on New Data Source in the screen that follows. You'll be prompted to select the type of the data source. Either drag in files you want to use to create a data source or press browse files to select the files you want to upload.

A files data source will be created and you'll see an overview on the following screen. Here you can update the name, change the description, upload more files or just browse a preview of the data.

Query a files data source

You can now query your files data source with a SQL cell. Select it in the Select source dropdown in the top left corner of a SQL cell. You can query the individual files by specifying their name in the FROM clause. The schema of the data source is also available by clicking on Browse Files, from here it's also easy to start querying individual files.