Open meisterluk opened 1 year ago
This is an interesting and potentially good idea (certainly the point about
print
is well-noted!). The main thing is to ensure that there is no
subtle change in what people "usually" use SageTeX for. Are there any
places where result
is actually what is desired, not stdout
, since this
is intended for pdf/print and not interactive use? Or any concern that
this might significantly increase processing time for a large project?
Message ID: @.***>
I cannot speak for the entire community, but my personal take is …
I learned that the request might be a direct result of Cryptool, a software and its German book about cryptography which uses sagetex for generating its content.
Expected output
Actual output
Proposed solution
It is annoying that the output in sagemath CLIs/cells is different from the sagemath generated output.
result
. Then onlyresult
is represented, not what was written to stdout.print
became a function and thus the problem occurs with one of the most fundamental primitives. Thus, it is IMHO particularly annoying.sys.stdout
during execution, represent the caught lines and skip representation of the result if it isNone