I'm using Google Colab and need to restart my notebook at least once a day due to their usage limits.
To mount my Google Drive I have the following code:
from google.colab import drive
drive.mount('drive')
I then get a prompt:
Go to this URL in a browser: https://accounts.google.com/o/oauth2/auth?client_id=xxxxxxxxx....
Enter your authorization code: ___________________________________________________
How can I authorise only once and have that authorisation remembered?
Ideally, that authorisation will have already happened as I'm signed in to Gmail and I can just specify the account email address of the Drive to mount.
However any solution of persistent authorisation where I don't store the auth code in the notebook would be great.