So I cannot successfully install miniconda and decided to work in Google Colab. But my local repository is in Google Drive. All of the jupyter notebook that I want to work on is
What works for me is opening the notebook from Google Drive, not from Colab.
The following steps:
Mount drive:
from google.colab import drive
drive.mount('/content/drive')
Change directory to your repository folder:
%cd drive/My Drive/Colab Notebooks/(YOUR_REPO_PATH)
First you need to mount google drive and then
from google.colab import drive
drive.mount('/content/gdrive')
Click the link on colb and authenticate (copy password and paste in colab) to mount and access your gdrive.
You can access your folder as shown below path_to_data = '/content/gdrive/My Drive/MyFolder_where_data_stored' Unique_Labels_List = os.listdir(path_to_data)
After running model, save the model, zip and download to local.
!zip -r ./MyFolder.zip /content/MyFolder
files.download("/content/MyFolder.zip")
There are many other things you can do. Check this resource for some more commands and you can find many more by searching in google. Thanks!