I've seen a lot of other questions here about this topic however none have helped. I am coding on Jupyter Notebook using Python 3, to organize my code I am trying to use 2 different modules for my program. Thus I have 1 module called let's for simplicity call it abc.ipynb and now created a different module called for simplicity edf.ipynb (Both on Jupyter Notebook)
At first i wasn't able to import abc to edf but after importing the import_ipynb package and fixing the PYTHONPATH it worked.
However, now I just want to import variables from abc to edf, I am trying:
- from abc import x
- import abc print(abc.x)
- I even tried calling a function
All give 1 of below errors:
- cannot import name 'x' from 'abc'
- module 'abc' has no attribute 'function'
Any advice? I already created an init.py in my folder however I think it is of no use since I am working with .ipynb