Skip to content

Instantly share code, notes, and snippets.

@youonf
Created February 3, 2019 09:04
Show Gist options
  • Save youonf/2e6f6939521403c2fff57e2c7edda007 to your computer and use it in GitHub Desktop.
Save youonf/2e6f6939521403c2fff57e2c7edda007 to your computer and use it in GitHub Desktop.
Upload the kaggle.json file
from google.colab import files
files.upload() #this will prompt you to update the json
!pip install -q kaggle
!mkdir -p ~/.kaggle
!cp kaggle.json ~/.kaggle/
!ls ~/.kaggle
!chmod 600 /root/.kaggle/kaggle.json # set permission
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment