I am running a jupyter notebook, directly from the GitHub repository of yhilpisch, on Google Colab. The notebook has a cell %run xxx.py, which is in the same directory as the notebook in the repo, and I get a file not found error. Another cell attempts to load a csv file in a data directory in the repo, with an appropriate path, but also file not found error. Is it possible for such a notebook to access these files, and if so what additional steps do I need to take to make it happen?
Ran the cells, expected no errors.
11
I have found an answer to my initial question, and that is to access data files by providing a URL, say data = pd.read_csv('<url of csv file>')
. Whether using this approach (run notebooks hosted on GitHub using Google Colab) is a good idea, see the detailed discussion provided by Wayne.