Last active
November 13, 2020 22:14
-
-
Save chidindu-ogbonna/dc67c491793bdc6e1460959fbeabc218 to your computer and use it in GitHub Desktop.
Get data to Colab from Kaggle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!pip install --upgrade --force-reinstall --no-deps kaggle | |
from google.colab import files | |
# Upload you kaggle.json file gotten from Kaggle Account settings. | |
files.upload() | |
!chmod 600 kaggle.json | |
!mkdir ~/.kaggle | |
!cp kaggle.json ~/.kaggle/ | |
!kaggle datasets list # List all datasets | |
# Make sure you have accepted the terms and conditions of the dataset | |
!kaggle competitions download -c <name-of-dataset> # Download a dataset | |
!ls |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment