ipynb icon indicating copy to clipboard operation
ipynb copied to clipboard

How to import the ipynb file that is in a different folder

Open inspirepassion opened this issue 4 years ago • 2 comments

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.

inspirepassion avatar Aug 19 '20 07:08 inspirepassion

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

josmecedo avatar Jan 06 '21 12:01 josmecedo

You need to add it to your sys.path.

fny avatar Sep 15 '22 21:09 fny