I have the following folder structure
main/ jupyter/ nb.ipynb helper/ text.txt foo/ foo.py The file foo.py contains
def foo(): open("../text.txt", "r") In the jupyter notebook I have
import sys sys.path.append("../helper/foo") from foo import foo foo() which gives a file not found error. What's the cleanest way of fixing that? (If possible, I'd like to keep foo.py unchanged.)