ipynb
ipynb copied to clipboard
How to import the ipynb file that is in a different folder
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.
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
You need to add it to your sys.path.