>Have you looked at f2py? >There is also fortran magic for Jupyter notebooks >f90wrap extends f2py to support modern Fortran
f2py and others are great to use static Fortran code, like LAPACK or BLAS. By static, I mean that no change is necessary to the Fortran code. Fython can do that too, and also addresses the use case of a dynamic Fortran code. I often go back and forth between the Python part and the Fython part of my code, tuning both as the project evolved. -- https://mail.python.org/mailman/listinfo/python-list