This is an implementation of Dabbaghian & Wu's algorithm of constructing non-cyclic pandiagonal Latin squares for the order 13 from Dabbaghian V, Wu T. Constructing non-cyclic pandiagonal Latin squares of prime orders. Journal of Discrete Algorithms. 2015;30:70–7. https://doi.org/10.1016/j.jda.2014.12.001
The Python code file is in the format for JupyterLab / Jupyter Notebook.
Best html rendition can be viewed at the GitHub Pages: https://ipgmvq.github.io/non_cyclic_pandiagonal_latin_squares_order_13/non_cyclic_latin_squares_order_13.html