Generate editable math calculations

I would like to be able to generate math-calculations with help from Python.

I need to make the calculations in Python but display them in a readable format (Mathcad for example).

I know how to generate math equations with Sympy but the problem is that the generated equations are static and can't be changed.

Is there any way that I can generate a math report in a software like mathcad or similar and maintain all the software functionality? In other words, I would like to be able to generate a report but still be able to make small adjustment in the generated document.

Hope you understand my question.

Best regards Viktor