Skip to content

Instantly share code, notes, and snippets.

@danielcwq
Created December 22, 2021 02:21
Show Gist options
  • Save danielcwq/939c4eb13150340d795de9074e998e57 to your computer and use it in GitHub Desktop.
Save danielcwq/939c4eb13150340d795de9074e998e57 to your computer and use it in GitHub Desktop.
from google.colab import files
files.upload()
!ls -lha kaggle.json
!pip install -q kaggle --upgrade
# 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
!kaggle datasets download -d nih-chest-xrays/sample
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment