How to use your custom modules in Jupyter notebooks

If you want to load your custom modules in the parental directory, add the following lines of codes:

import sys
sys.path.append('..')

from customFunctions import *

To make the change in customFunctions.py effective, run this:

%load_ext autoreload
%autoreload 2

Reference:
sys.path different in Jupyter and Python – how to import own modules in Jupyter?

Comments

Copied title and URL