Uploading data to Colab#

To work with exported LabChart data in Python, you’ll either need to upload the file to Colab or put it in Google Drive & mount your drive.

Uploading directly#

To upload a file, click the Directory icon on the left hand side of the window. Then, click the file upload button. There is a video of how to do this below:

Mounting your drive#

  1. To mount your drive, click the Directory icon on the left hand side of the window.

  2. Click the Google Drive icon.

  3. Colab will create a new cell in the notebook and prompt you to run it.

  4. If it’s the first time, a separate window will pop up to ask you for access to your Drive.

  5. Click “Allow”.

  6. After a few seconds, a message will print that your Drive has been mounted.

  7. Now, you can use the location of your file in a filepath that starts with /content/drive.

Saving work in Colab#

You can save a Colab file that you’ve edited just like any other file! In Colab, go to File > Save a copy in Drive. These files will show up in a folder called “Colab Notebooks” in your Drive.