It you put a .py file in the same directory as where the file is (and where you launch the jupyter from), you can import it as a Python module, e.g. if your file is myfile.py and there is a myfunction in it, you can import it as follows:
from myfile import myfunction