Skip to content

Instantly share code, notes, and snippets.

@ibrahim-kardi
Last active April 3, 2020 04:17
Show Gist options
  • Save ibrahim-kardi/52dbb84219790123962c9dc9c49547ec to your computer and use it in GitHub Desktop.
Save ibrahim-kardi/52dbb84219790123962c9dc9c49547ec to your computer and use it in GitHub Desktop.
google colab
from google.colab import files
files.upload() #this will prompt you to upload the kaggle.json
!pip install -q kaggle
!mkdir -p ~/.kaggle
!cp kaggle.json ~/.kaggle/
!ls ~/.kaggle
!chmod 600 /root/.kaggle/kaggle.json # set permission
#than copy the kaggle API
!kaggle datasets download -d sohaibanwaar1203/prepossessed-arrays-of-binary-data
#not necessary
!mkdir lol #create a directory named train/
!unzip -q prepossessed-arrays-of-binary-data.zip -d lol/ #unzip data in lol/
#not necessary
from google.colab import drive #mounted all file and folder from google drive
drive.mount('/content/gdrive')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment