A hands-on walkthrough of computing and plotting solar eclipse paths using Python. The approach uses Astropy to calculate sun-moon angular separation, then applies black-box optimization via scipy's Nelder-Mead method to find the latitude/longitude of eclipse totality for any given timestamp. To find all eclipses in the
Table of contents
Solving for the coordinates using black-box optimizationFinding all the eclipsesPlotting itNotesSort: