How to import the ipynb file that is in a different folder
inspirepassion opened this issue · 2 comments
inspirepassion commented
Assuming there is a function files I want to import: project/helper_fun.ipynb
My current working ipynb file is: project/branch/work.py
when I write from ipynb.fs.defs.helper_fun import fun1
in mywork.p
, it saysthere is no module called helper_fun
So my question is how to import the ipynb functions that are in a different folder.
josmecedo commented
You can use cd command to change directory and then use it, I don't know if it is the best way but it works
fny commented
You need to add it to your sys.path.