Answers for "kaggle dataset download to google colab"

0

download kaggle dataset in colab

Create api key
and yout colab:

from google.colab import files
files.upload() #upload kaggle.json

!pip install --upgrade --force-reinstall --no-deps kaggle
!mkdir -p ~/.kaggle
!cp kaggle.json ~/.kaggle/
!ls ~/.kaggle
!chmod 600 /root/.kaggle/kaggle.json
!kaggle competitions -h
!kaggle competitions download -c DATASET
Posted by: Guest on July-16-2021
0

kaggle dataset download to google colab

def pull_kaggle_data(username,key):
import json
! mkdir .kaggle
token = {"username":username,"key":username}
with open(".kaggle/kaggle.json", "w") as file:
json.dump(token, file)
! cp .kaggle/kaggle.json ~/.kaggle/kaggle.json


================================================================================
pull_kaggle_data(username,key)
! kaggle competitions download -c malware-classification
Posted by: Guest on August-13-2021

Code answers related to "kaggle dataset download to google colab"

Python Answers by Framework

Browse Popular Code Answers by Language