I want to build a server with sagemath, it should take in code, execute it and send back the result. SageMath has a python interface with which I thought this could be achieved. I don't really know python that well but I found a good starting point here. The problem is that I wanted to run this in a docker container so and just map the port but this doesn't seem to be working.
My question is, is there a better way of doing this because the post is very old and I have a lot of trouble getting it to run.