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#
To mount your drive, click the Directory icon on the left hand side of the window.
Click the Google Drive icon.
Colab will create a new cell in the notebook and prompt you to run it.
If it’s the first time, a separate window will pop up to ask you for access to your Drive.
Click “Allow”.
After a few seconds, a message will print that your Drive has been mounted.
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.