colab mount drive
from google.colab import drive
drive.mount('/content/drive')
#Optional: move to the desired location:
%cd drive/My Drive/DIRECTORY_IN_YOUR_DRIVE
colab mount drive
from google.colab import drive
drive.mount('/content/drive')
#Optional: move to the desired location:
%cd drive/My Drive/DIRECTORY_IN_YOUR_DRIVE
connect google drive to colab
from google.colab import drive
drive.mount("/content/gdrive")
download from colab
from google.colab import files
files.download("path")
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us