I've spent hours researching this small problem now, but clearly I wasn't able to figure out how to get my packages to work the way I want them to.
Here's an extract from my project structure:
package/
__init__.py
code.py
notebooks/
testing.ipynb
With __init__.py
containing:
from .code.py import *
Shouldn't I be able to import the functions from code.py within testing.ipynb
as follows?
from ..package import *
The error message I'm getting is:
ImportError: attempted relative import with no known parent package