1 | initial version |
This has been requested from time to time in the past. Functionality to do this automatically is definitely something we'd like to add to sage. There is an open ticket, and there you can see a few different approaches that people have given in the past. Hopefully one of them will help you with your task!
https://trac.sagemath.org/ticket/14428
Unfortunately, there isn't any active work on choosing a method and including it into sage. Any effort would be welcome :)