Colab – automatic authentication of connection to google drive, persistent per-notebook

Automatically mounting to your Drive files is now supported for Colab notebooks which aren’t shared by multiple people.

To enable this for a notebook, create a new Drive notebook, open the file browser, and click the ‘Mount Drive’ button.

enter image description here

You’ll see a permissions dialog like so:

enter image description here

After you complete the permissions once, you’ll see your Drive mounted in the file browser.

enter image description here

Better still, if you reload the notebook later and reconnect, your Drive will mount automatically with no more drive.mount copy/paste required. Your Drive files will just be there.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)