Importing function from another notebook or file
name
Running function() from .py file
import sys
import importlib
sys.path.append('.')
import another_file
importlib.reload(another_file)
print(another_file.greetFromAnotherFile(name))
Running function() from Notebook
import ipynb
%run imported_another_notebook.ipynb
print(greetFromAnotherNotebook(name))