Colabtools: The csv files I uploaded to Colab vanished. I guess the VM was recycled and so the files were deleted.

Created on 3 Oct 2018  路  6Comments  路  Source: googlecolab/colabtools

I only had them there for one day and they are gone already. I have to keep uploading them everyday? Will colab load my local files ? can I point colab to my files on google drive ?

Most helpful comment

A typical pattern is to mount your Google Drive as a filesystem and store persistent files there.

To do this, run:

from google.colab import drive
drive.mount('/content/gdrive')

For more recipes, see the I/O example notebook.

All 6 comments

A typical pattern is to mount your Google Drive as a filesystem and store persistent files there.

To do this, run:

from google.colab import drive
drive.mount('/content/gdrive')

For more recipes, see the I/O example notebook.

Does anyone have any more info on this? I also found that files disappear the next day. Is there any way to make them persist?

@nattemple I have also witnessed the same issue, The locally saved files vanishes after running a few code blocks.

@nattemple @DanBrown47 @paulgureghian

  1. Create a new notebook
  2. Next, on the far left, click "馃搧", the "Mount Drive" button and select "CONNECT TO GOOGLE DRIVE". Your drive storage should automatically remount each time you run the notebook(s).
  3. Optionally, see the official video for a walkthrough.

Thanks for all the comments.
I have a situation where I am going to share my notebook with someone, but I don't want that person (collaborator) to see my google drive file.

@sanketchavan08 As far as I know, there is no fine-grained permission giving amongst colaborators and sharing a notebook with someone does not give them access to your drive either. What I would recommend is uploading the file to a personal domain and keeping that as the source of truth which your friend can download from in his own notebook.

Was this page helpful?
0 / 5 - 0 ratings