Skip to content

Instantly share code, notes, and snippets.

View tales-aparecida's full-sized avatar

Tales Lelo da Aparecida tales-aparecida

View GitHub Profile
@tales-aparecida
tales-aparecida / get_google_drive_username_colab.py
Created December 7, 2022 19:44
Use Google Drive authentication to define who is running a notebook in Google Colab
"""
Use Google Drive authentication to define who is running this notebook.
"""
import re
from pathlib import Path
from google.colab import drive
from google.colab.drive import _logs_dir
# mount Google Drive