Skip to content

Instantly share code, notes, and snippets.

@pessini
Last active December 24, 2022 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pessini/4a1a0cc28f30e832a7a6d049b01c7499 to your computer and use it in GitHub Desktop.
Save pessini/4a1a0cc28f30e832a7a6d049b01c7499 to your computer and use it in GitHub Desktop.
How To Download Files And Folders From Google Colab
# create a zip file from folder you want to download
!zip -r /content/file.zip /content/FOLDER_TO_DOWNLOAD/
# download file recently created
from google.colab import files
files.download("/content/file.zip")
# download individual file
files.download('/content/sample_data/README.md')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment