Import local function from a module housed in another directory with relative imports in Jupyter Notebook using Python 3
I have a directory structure similar to the following meta_project project1 __init__.py lib module.py __init__.py notebook_folder notebook.jpynb When working in notebook.jpynb if I try to use a relative import to access a function function() in module.py with: from ..project1.lib.module import function I get the following error: SystemError Traceback (most recent call last) <ipython-input-7-6393744d93ab> in <module>() … Read more