I've used https://cloud.sagemath.com/ with great success. Especially with writing Sage code, LaTeX, Python, Go, Javascript, and a bunch of others. It's especially nice since I can work on any of these collaboratively with others. Right now I'm using it with a small team writing a bunch of markdown files with math, which smc (sage math cloud) handles great.