Issue
This Content is from Stack Overflow. Question asked by kobi
I am trying to import a script python(for example sub.py) from a folder named subfolder to main program(script python named main.ipynb) but colab can not find that module and have an error
my source code for import sub in main program is from sub import func1,func2
branch of program is
main.ipynb
subfolder
–sub.py
Solution
from subfolder.sub import func1,func2
This Question was asked in StackOverflow by kobi and Answered by Jafar Isbarov It is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.