Skip to content

Instantly share code, notes, and snippets.

@pikonha
Created April 3, 2021 23:28
Show Gist options
  • Save pikonha/d1e83ed0770944172fd9c19ec2f0b684 to your computer and use it in GitHub Desktop.
Save pikonha/d1e83ed0770944172fd9c19ec2f0b684 to your computer and use it in GitHub Desktop.
Import dataset from kaggle directly to a colab session
Display the source blob
Display the rendered blob
Raw
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