Sign inGet started
← Back to all guides

How to work with Google Drive in Juptyer

By Nick Barth

Updated on June 5, 2024

Working with Google Drive in Jupyter and Deepnote can greatly enhance your data science workflow by enabling easy access to your datasets and notebooks. To get started, mount your Google Drive using the Google Colab integration in Jupyter:

  1. Import the `drive` module from Google Colab.

```python

from google.colab import drive

```

  1. Mount your Google Drive to the Colab environment.

```python

drive.mount('/content/drive')

```

  1. Access files by navigating to the `/content/drive/My Drive/` directory in your notebook.

For Deepnote, you can directly integrate Google Drive:

  1. Go to your Deepnote project and click 'Integrations' on the left sidebar.
  2. Find Google Drive in the list of available integrations and click 'Connect'.
  3. Follow the prompts to authorize Deepnote to access your Google Drive.

Once connected, your Google Drive will appear as a folder in the Deepnote file sidebar, allowing you to easily interact with your files.

Nick Barth

Product Engineer

Nick has been interested in data science ever since he recorded all his poops in spreadsheet, and found that on average, he pooped 1.41 times per day. When he isn't coding, or writing content, he spends his time enjoying various pursuits leisure.

Follow Nick on LinkedIn and GitHub

That’s it, time to try Deepnote

Get started – it’s free
Book a demo

Footer

Solutions

  • Notebook
  • Data apps
  • Machine learning
  • Data teams

Product

Company

Comparisons

Resources

  • Privacy
  • Terms

© Deepnote