I have 2 modules: a:
import another_module
def func():
b:
import a
x=a.func()
This is showing error: module 'a' has no attribute 'func'. What i am doing wrong in importing a.ipynb
I have 2 modules: a:
import another_module
def func():
b:
import a
x=a.func()
This is showing error: module 'a' has no attribute 'func'. What i am doing wrong in importing a.ipynb
Make sure your module is names 'a.py', and it is in the same folder as b, otherwise, in the place where all the other modules are stored.