This lesson used a Jupyter notebook to introduce the basics of mpi4py. It also involved writing several text files which could be executed using MPI. The files may be viewed and downloaded here. The notebook may be viewed online here.

There is a more in-depth tutorial on mpi4py available at this link .