Learn practical skills, build real-world projects, and advance your career
Created 5 years ago
Load the drive helper and mount
from google.colab import drive
# this will prompt for authorization
drive.mount('/content/gdrive',force_remount=True)
# dataset file path
root_path = "gdrive/My Drive/colab_folder/"
Upload the Kaggle API file to Google Colab
# upload the kaggle API key file
from google.colab import files
files.upload()
# move the API key to the kaggle folder.Give permissions to change.
!mkdir -p ~/.kaggle/ && mv kaggle.json ~/.kaggle/ && chmod 600 ~/.kaggle/kaggle.json