mylib.py # mylib.py def add(x, y): return x + y def multiply(x, y): return x * y test.ipynb import os import sys sys.path.insert(0, os.getcwd()) # Add the current working directory to the Python path from mylib import * add(1, 2)