Created
April 3, 2021 23:28
-
-
Save pikonha/d1e83ed0770944172fd9c19ec2f0b684 to your computer and use it in GitHub Desktop.
Import dataset from kaggle directly to a colab session
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
from google.colab import files | |
files.upload() #upload kaggle.json | |
!pip install -q kaggle | |
!mkdir -p ~/.kaggle | |
!cp kaggle.json ~/.kaggle/ | |
!ls ~/.kaggle | |
!chmod 600 /root/.kaggle/kaggle.json | |
!kaggle datasets download -d <dataset_name> | |
!unzip <dataset>.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment