[python] Extract Google Drive zip from Google colab notebook

To extract Google Drive zip from a Google colab notebook:

import zipfile
from google.colab import drive

drive.mount('/content/drive/')

zip_ref = zipfile.ZipFile("/content/drive/My Drive/ML/DataSet.zip", 'r')
zip_ref.extractall("/tmp")
zip_ref.close()

Examples related to python

programming a servo thru a barometer Is there a way to view two blocks of code from the same file simultaneously in Sublime Text? python variable NameError Why my regexp for hyphenated words doesn't work? Comparing a variable with a string python not working when redirecting from bash script is it possible to add colors to python output? Get Public URL for File - Google Cloud Storage - App Engine (Python) Real time face detection OpenCV, Python xlrd.biffh.XLRDError: Excel xlsx file; not supported Could not load dynamic library 'cudart64_101.dll' on tensorflow CPU-only installation

Examples related to google-drive-api

Extract Google Drive zip from Google colab notebook How to automatically import data from uploaded CSV or XLS file into Google Sheets wget/curl large file from google drive How to embed a Google Drive folder in a website Direct download from Google Drive using Google Drive API Is there a Google Keep API? Google drive limit number of download How do I display images from Google Drive on a website? How to get the file ID so I can perform a download of a file from Google Drive API on Android? SVN Repository on Google Drive or DropBox

Examples related to google-colaboratory

How to prevent Google Colab from disconnecting? How do I install Python packages in Google's Colab? Extract Google Drive zip from Google colab notebook Importing .py files in Google Colab Google Colab: how to read data from my google drive? Changing directory in Google colab (breaking out of the python interpreter) Import data into Google Colaboratory wget/curl large file from google drive

Examples related to zipfile

Extract Google Drive zip from Google colab notebook Python: Open file in zip without temporarily extracting it Unzipping files in Python How to create a zip archive of a directory in Python?