Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex DataSphere
  • Getting started
    • All guides
      • Connecting to S3 using the boto3 library
      • Connecting to a ClickHouse® database
      • Connecting to a PostgreSQL database
      • Connecting to Yandex Disk
      • Connecting to Google Drive
    • Migrating a workflow to a new version
  • Terraform reference
  • Audit Trails events
  • Access management
  • Pricing policy
  • Public materials
  • Release notes

In this article:

  • Getting started
  • Uploading the contents from a file on Google Drive to a DataSphere project file
  • Uploading the contents from a folder on Google Drive to a DataSphere project folder
  1. Step-by-step guides
  2. Connecting to data sources
  3. Connecting to Google Drive

Connecting to Google Drive

Written by
Yandex Cloud
Updated at August 29, 2023
  • Getting started
  • Uploading the contents from a file on Google Drive to a DataSphere project file
  • Uploading the contents from a folder on Google Drive to a DataSphere project folder

You can connect to the Google Drive file storage service from the DataSphere interface.

Getting startedGetting started

Open the DataSphere project:

  1. Select the relevant project in your community or on the DataSphere homepage in the Recent projects tab.

  2. Click Open project in JupyterLab and wait for the loading to complete.
  3. Open the notebook tab.

Uploading the contents from a file on Google Drive to a DataSphere project fileUploading the contents from a file on Google Drive to a DataSphere project file

  1. Go to a new cell and copy the command to import the contents from a file on Google Drive to it:

    # %pip install gdown if needed
    
    import gdown
    
    gdrive_file_id = '<Google_Drive_file_ID>'
    dst_path = '<DataSphere_project_file_path>'
    
    gdown.download(id=gdrive_file_id, output=dst_path)
    

    Where:

    • <Google_Drive_file_ID>: ID of the Google Drive file, the content of which needs to be imported to DataSphere.
    • <DataSphere_project_file_path>: Path to the DataSphere project file to import data to.
  2. Run the cell. To do this, choose Run → Run Selected Cells or press Shift + Enter.

Uploading the contents from a folder on Google Drive to a DataSphere project folderUploading the contents from a folder on Google Drive to a DataSphere project folder

  1. Go to a new cell and copy the command to import the contents from a folder on Google Drive to it:

    # %pip install gdown if needed
    
    import gdown
    
    gdrive_folder_id = '<Google_Drive_folder_ID>'
    dst_path = '<DataSphere_project_folder_path>'
    
    gdown.download_folder(id=gdrive_folder_id, output=dst_path)
    

    Where:

    • <Google_Drive_folder_ID>: ID of the Google Drive folder, the content of which needs to be imported to DataSphere.
    • <DataSphere_project_folder_path>: Path to the DataSphere project folder to import data to.
  2. Run the cell.

Was the article helpful?

Previous
Connecting to Yandex Disk
Next
Creating a node
© 2025 Direct Cursus Technology L.L.C.