Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
inspirepassion opened this issue Aug 19, 2020 · 2 comments
Open

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

inspirepassion opened this issue Aug 19, 2020 · 2 comments

Comments

@inspirepassion
Copy link

inspirepassion commented Aug 19, 2020

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
Copy link

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
Copy link

fny commented Sep 15, 2022

You need to add it to your sys.path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants