Run mpiexec from inside jupyter notebook

Currently I use %%writefile to save a cell to the file
Afterwards I can run mpiexec python -m mpi4py in the commandline.
Do you know a way to run mpiexec directly from inside the jupyter notebook?
I tried some magic commands but that didn’t work.

Have a nice day! :slightly_smiling_face: