Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there anyway to save Google colab environment to somewhere and reuse it?

I've tried virtualenv and conda, it was successfully installed but I cannot active the virtual environment. Then I think about saving Colab environment (I mean installed libraries) to somewhere, maybe Google Drive then I can reuse it.

Is it possible?

like image 984
Nhiên Ngô Đình Avatar asked Jan 25 '19 07:01

Nhiên Ngô Đình


Video Answer


2 Answers

You can add a directory in GDrive to PYTHONPATH, e.g. /content/drive/My Drive/Colab Notebooks/

Then Python will search for an installed library there. You still need to mount to GDrive every time, though.

like image 30
korakot Avatar answered Sep 16 '22 17:09

korakot


For the questioner and for whom reached here because of the same issue,

A good answer was posted after this question : How do I install a library permanently in Colab?

It uses the way you install libraries into your Google Drive.

like image 140
WindBag Avatar answered Sep 18 '22 17:09

WindBag