answered 2 years ago
Does using the keyword hold=True in integrate cover your need?
hold=True
integrate
sage: integrate(sin(x), (x, 0, pi), hold=True) integrate(sin(x), x, 0, pi)