Answers for "Setting up Colab for Kaggle Downloads"

0

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
Posted by: Guest on October-25-2021

Python Answers by Framework

Browse Popular Code Answers by Language