Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Setting up Colab for Kaggle Downloads

! pip install kaggle #  Install the Kaggle library
! mkdir ~/.kaggle # Make a directory named “.kaggle”
!cp /content/drive/MyDrive/kaggle.json ~/.kaggle/kaggle.json
"""
Copy the “kaggle.json” file from the mounted google drive to the current instance storage.
The Google drive is mounted under the “./content/drive/MyDrive” path. The json file is
stored in the G-Drive Root folder
"""
! kaggle competitions download -c <name of competition> # Download competition datasets from kaggle
Source by colab.research.google.com #
 
PREVIOUS NEXT
Tagged: #Setting #Colab #Kaggle #Downloads
ADD COMMENT
Topic
Name
6+3 =