Skip to content

Instantly share code, notes, and snippets.

@overtunned
Created November 16, 2021 13:21
Show Gist options
  • Select an option

  • Save overtunned/09acde7b3dd2528983acfc6bf0cf1a9a to your computer and use it in GitHub Desktop.

Select an option

Save overtunned/09acde7b3dd2528983acfc6bf0cf1a9a to your computer and use it in GitHub Desktop.
Unzip files in colab
import zipfile
directory_to_extract_to = '/content/data'
path_to_zip_file = '/content/file.zip'
with zipfile.ZipFile(path_to_zip_file, 'r') as zip_ref:
zip_ref.extractall(directory_to_extract_to)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment