Google Colab Extension for VSCode
Get Token
# Mount your Google Drive on your Google Colab runtime
from google.colab import drive
drive.mount('/content/drive/')
path_to_key = "/content/drive/MyDrive/Colab Notebooks/configs/openai/token_tb.txt"
file1 = open(path_to_key, "r")
token_oai = file1.read()
You can now safely store your private keys, such as your Huggingface or Kaggle API tokens API tokens, in Colab! Values stored in Secrets are private, visible only to you and the notebooks you select.
