carpentries-incubator / python-text-analysis

Text Analysis with Python
https://carpentries-incubator.github.io/python-text-analysis/
Other
11 stars 13 forks source link

helpers.py module not in sys.path #74

Open srappel opened 6 days ago

srappel commented 6 days ago

helpers.py module is not accessible if it's in the "text-analysis/code" directory unless either...

1) the code directory is added to sys path e.g. sys.path.insert(0, '/content/drive/My Drive/Colab Notebooks/text-analysis/code')

2) helpers.py is moved from the code directory into the text-analysis dir.

This is an optional method used first here:

https://carpentries-incubator.github.io/python-text-analysis/03-preprocessing/index.html#loading-data-into-python

srappel commented 3 days ago

Or I guess we can just make the wksp_dir look at the code directory instead of text-analysis

wksp_dir = '/content/drive/My Drive/Colab Notebooks/text-analysis/code'