I\'m looking for a way to automate the authentication process when connecting a colab-session to my google drive.
I\'d prefer to use the built-in tools for this one,
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.
You'll see a permissions dialog like so:
After you complete the permissions once, you'll see your Drive mounted in the file browser.
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.