I used to do this, but I switched to just using a Jupyter Notebook. It’s nice to be able to move between multiple computers, with no need to set up a LaTeX install.
A couple of things I love about this setup:
I can write in Markdown and drop to LaTeX when I need to forumalate any equations.
For homework, I can implement a quick Python script inline to build intuition behind a topic.
I can use Sympy to simplify and solve for more complex derivations. This outputs LaTeX which I can paste into the requisite Markdown cell.
With Plotly, I can quickly create a nice 2D or 3D visualization.