neldelesndblogtagscontactresume
neldelesndblogtagscontactresume

2019 November 12thImport your own custom modules in Google Colabgoogle colabtoolsdata science 

Google Colab is great. But you do have to wrap your head around how it handles "local files".


# first mount your gdrive from google.colab import drive drive.mount('/gdrive') # next, add the location of the file to the path: import sys sys.path.append('/content/drive/My Drive') # you can then import as usual from module_name import some_class_or_function

Source: comment section of url