Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex DataSphere
  • Getting started
    • All guides
      • Connecting to S3 using boto3
      • 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
  • Importing the contents from a file on Google Drive to a DataSphere project file
  • Importing 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 15, 2025
View in Markdown
  • Getting started
  • Importing the contents from a file on Google Drive to a DataSphere project file
  • Importing the contents from a folder on Google Drive to a DataSphere project folder

You can connect to Google Drive from within the DataSphere interface.

Getting startedGetting started

Open the DataSphere project:

  1. Select the project in your community or on the DataSphere home page in the Recent projects tab.

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

Importing the contents from a file on Google Drive to a DataSphere project fileImporting the contents from a file on Google Drive to a DataSphere project file

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

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

    Where:

    • <Google_Drive_file_ID>: ID of the Google Drive file whose contents you need to import to DataSphere.
    • <path_to_file_in_DataSphere_project>: Path to the DataSphere project file to import data to.
  2. Run the cell by selecting Run → Run Selected Cells or pressing Shift + Enter.

Importing the contents from a folder on Google Drive to a DataSphere project folderImporting the contents from a folder on Google Drive to a DataSphere project folder

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

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

    Where:

    • <Google_Drive_folder_ID>: ID of the Google Drive folder whose contents you need to import to DataSphere.
    • <path_to_folder_in_DataSphere_project>: 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
© 2026 Direct Cursus Technology L.L.C.