Upload local files using Google Colab

Alexandre2R picture Alexandre2R · Jan 24, 2018 · Viewed 27.5k times · Source

Trying to upload local files using Google Collaboratory this way:

from google.colab import files
uploaded = files.upload()

I get the following error:

Upload widget is only available when the cell has been executed in the current browser session. Please rerun this cell to enable.

I rerun the cell but it doesn't work...

Answer

blois picture blois · Jan 24, 2018

It sounds like third-party cookies may be disabled in your browser, see https://github.com/googlecolab/colabtools/issues/17.

The setting is under chrome://settings/content/cookies.