On this page you will find Jupyter notebooks for a variety of geodynamics related calculations. Many of these are for analytic solutions for flow or forces related to plate, slab or mantle flow. The notebooks are a great way to combine the background information, the python script for doing the calculation and figures. However, I have also included a PDF of the notebook in case you are not yet a jupyter notebook user.
Warning: I have made every effort to insure there are no errors in these scripts, but it is not smart to assume that they are in fact error free. If you use them, you should check the results against the cited publications and common sense.