Cantor is a good front end, but I wonder is there a way to get the output from the back end (in this case, SageMath) to be rendered by TeX?
For Jupyter, you can easily do that with
%display latex, or equivalently
However, neither do the job.
By the way, rendering formula in Markdown cell results in a picture with very bad resolution…