In the file mylibrary.py I have the function
mylibrary.py
def myfunc(a,b): return a+b
and in a Jupyter notebook I run
impo