Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

cannot access modules from neighbouring directories jupyter notebook

import os
import sys
module_path = os.path.abspath(os.path.join('..'))
if module_path not in sys.path:
    sys.path.append(module_path)
# and add __init__.py to the modules
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #access #modules #neighbouring #directories #jupyter #notebook
ADD COMMENT
Topic
Name
2+5 =