kelly-sovacool
3/21/2019 - 3:09 AM

Google Drive file I/O with Colaboratory Jupyter notebooks

Google Drive file I/O with Colab Jupyter notebooks

Google Drive file I/O with Colab Jupyter notebooks

A minimal working example.

Instructions

  1. Place the Jupyter notebook in your Google Drive.
  2. In Google Drive in your web browser, open the Jupyter notebook with Colaboratory.
  3. Run the cells in this notebook to mount the drive and practice reading & writing files.

Notes

  • In this example, input.txt is a file in the top-level directory of my Google Drive.
  • You can append sub-directories to the path as needed. E.g. to access a file in a directory called my_project, use the path /content/gdrive/My Drive/my_project/.
testing google colab file reading