Skip to content

Instantly share code, notes, and snippets.

@danielcwq
Created February 8, 2022 23:27
Show Gist options
  • Save danielcwq/0a891f6627c84a8d4abdaae12398ec41 to your computer and use it in GitHub Desktop.
Save danielcwq/0a891f6627c84a8d4abdaae12398ec41 to your computer and use it in GitHub Desktop.
from google.colab import files
files.upload()
!pip install -q kaggle
# The Kaggle API client expects this file to be in ~/.kaggle,
# so move it there.
!mkdir -p ~/.kaggle
!cp kaggle.json ~/.kaggle/
# This permissions change avoids a warning on Kaggle tool startup.
!chmod 600 ~/.kaggle/kaggle.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment