Skip to main content
April 2, 2026Colin Jaffe/3 min read

Setting Up Jupyter Notebooks in Google Colab with Google Drive

Master Jupyter Notebooks with Google Drive Integration

Prerequisites

Before starting, ensure you have a Google account with access to both Google Drive and Google Colab. This tutorial assumes you have the Python Machine Learning Bootcamp folder ready for upload.

Google Colab Benefits

Free GPU Access

Run machine learning models without expensive hardware. Google Colab provides free access to powerful computing resources including GPUs and TPUs.

Cloud Storage Integration

Seamlessly connect with Google Drive for persistent file storage. Your notebooks and data remain accessible across sessions and devices.

Pre-installed Libraries

Skip setup time with popular data science libraries already installed. TensorFlow, PyTorch, pandas, and scikit-learn are ready to use immediately.

Setting Up Your Google Drive Structure

1

Navigate to My Drive

Open Google Drive and click on 'My Drive' in the left sidebar. This is the root directory where your folder must be placed for proper file path recognition.

2

Upload Entire Folder

Click 'New' then select 'Folder Upload' (not File Upload). Choose the complete 'Python Machine Learning Bootcamp' folder to maintain the course structure.

3

Verify Folder Structure

Confirm that 'Python Machine Learning Bootcamp' appears directly in My Drive with no intermediate folders. This ensures all file paths work correctly.

4

Connect Drive to Colab

Run the mount command in Colab to establish the connection. This one-time setup enables automatic opening of notebooks from Google Drive.

Critical Path Requirement

The folder must be placed directly in My Drive without any intermediate folders. Adding extra organizational layers will break all file paths in the course notebooks and require extensive manual fixes.

Upload Statistics

101
files included in the bootcamp folder
1x
time setup required

Folder Organization Approach

Pros
Automatic file path compatibility with all course notebooks
Simple structure that requires no additional configuration
Direct access to all files without navigation complexity
Maintains intended course workflow and organization
Cons
Less flexibility for personal organization preferences
May not align with existing Google Drive structure
Requires discipline to avoid reorganizing folders

Pre-Upload Verification

0/4

Setup Process Timeline

Step 1

Initial Drive Access

Navigate to Google Drive and locate My Drive section

Step 2

Folder Upload Initiation

Select New > Folder Upload and choose the bootcamp folder

Step 3

Upload Processing

Allow Google Drive to upload all 101 files (may take several minutes)

Step 4

Drive-Colab Integration

Run mount command in Colab to establish persistent connection

Step 5

Verification Complete

Test opening notebooks directly from Google Drive interface

One-Time Setup Benefit

Once you've connected Google Drive and Google Colab, all future Python notebooks in your Drive will automatically open in Colab with a simple double-click. This eliminates the need for manual uploads or individual file management.

File Access Methods

FeatureManual UploadGoogle Drive Integration
Setup ComplexitySimpleOne-time configuration
File PersistenceSession onlyPermanent storage
AccessibilityUpload each timeAlways available
CollaborationManual sharingDrive sharing features
Recommended: Google Drive integration provides superior workflow efficiency and file management capabilities for ongoing data science projects.

This lesson is a preview from our Data Science & AI Certificate Online (includes software) and Python Certification Online (includes software & exam). Enroll in a course for detailed lessons, live instructor support, and project-based training.

Now that you have your first Jupyter notebook running, the next critical step is establishing a streamlined workflow for accessing all course materials. We'll upload the complete collection of Jupyter notebooks, datasets, and supporting files to Google Drive, creating seamless integration with Google Colab that will serve you throughout this bootcamp.

Navigate to your Google Drive homepage and locate "My Drive" in the left sidebar. This destination is crucial—you must upload your course folder directly to My Drive's root directory, not within any subdirectories. This placement isn't arbitrary; every file path referenced in our Python Machine Learning Bootcamp notebooks is hardcoded to expect this exact location. Deviating from this structure will break relative imports and data loading functions, creating unnecessary troubleshooting headaches down the road.

To upload the complete folder structure, click "New" in the left panel, then select "Folder Upload"—not "File Upload." This distinction matters because we need to preserve the entire directory hierarchy, including subdirectories and their relationships. Individual file uploads would destroy the organizational structure that makes this bootcamp's progression logical and efficient.

When the upload dialog appears, exercise careful attention to your selection. Ensure that "Python Machine Learning Bootcamp" appears as the highlighted folder name—not any of its subdirectories like "Start," "Final," or individual project folders. This is perhaps the most common setup error students encounter, and it cascades into path resolution issues that can derail your first week of progress.


After clicking "Upload," you'll see a prompt indicating 101 files are ready for transfer. Modern browsers handle this batch operation efficiently, though upload time varies based on your connection speed and Google's current server load. You don't need to wait for completion before proceeding—Google Drive's background processing will handle the queue while we continue setup.

The final directory structure should show "Python Machine Learning Bootcamp" as a top-level folder within My Drive. This creates the foundation for our integrated workflow: every subsequent notebook assumes this exact path structure exists. When you access datasets, import custom modules, or reference supporting files, the code will execute flawlessly because the relative paths align with your actual directory organization.

With this structure in place, opening any notebook becomes effortless. Navigate to your desired folder within the bootcamp directory and double-click any .ipynb file. Since you've already established the Google Drive-Colab connection in your previous session, the integration persists across your Google account. Future notebook launches will automatically open in Colab's environment without additional authentication steps.


The path hierarchy bears repeating because it's the source of 90% of early technical difficulties: My Drive → Python Machine Learning Bootcamp → [course materials]. No intermediate folders, no additional organizational layers, no custom naming schemes. While the urge to "improve" the organization is understandable, introducing extra directory levels requires manual path corrections across dozens of notebooks—a time-consuming process that offers no meaningful benefit.

Resist the temptation to create wrapper folders like "Courses" or "Data Science Projects." The bootcamp's internal organization already provides logical groupings for different learning phases and project types. Adding your own organizational layer transforms a plug-and-play setup into a debugging exercise that detracts from actual learning objectives.

With your complete file ecosystem now properly integrated into the Google Drive-Colab workflow, we're ready to dive deeper into Jupyter notebook fundamentals and begin hands-on machine learning development. This foundation ensures that every code example, data import, and project file will function exactly as designed throughout your bootcamp journey.


Key Takeaways

1Google Drive must be connected to Google Colab for seamless notebook access and persistent file storage across sessions
2The Python Machine Learning Bootcamp folder must be placed directly in My Drive without any intermediate folders to maintain proper file paths
3Use Folder Upload rather than File Upload to preserve the complete directory structure and file relationships within the course materials
4All 101 course files should be uploaded as a complete package to ensure no dependencies or resources are missing from the learning environment
5Once the initial Drive-Colab connection is established, all future Python notebooks can be opened directly from Google Drive with a double-click
6Proper folder organization prevents the need to manually edit file paths in dozens of notebooks, saving significant time and avoiding errors
7The setup process is a one-time investment that enables efficient workflow throughout the entire machine learning bootcamp course
8Avoiding over-organization of the folder structure is crucial for maintaining compatibility with pre-written notebook code and file references

RELATED ARTICLES