Connecting to Google Drive
Written by
Updated at August 15, 2025
You can connect to Google Drive
Getting started
Open the DataSphere project:
-
Select the project in your community or on the DataSphere home page
in the Recent projects tab. - Click Open project in JupyterLab and wait for the loading to complete.
- Open the notebook tab.
Importing the contents from a file on Google Drive to a DataSphere project file
-
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.
-
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 folder
-
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.
-
Run the cell.