2
$\begingroup$

In the answer to this question, one explains how to use a function

PrintToConsole[...]

to print output to the console. My question: can you make a global definition that will automatically print all output to the message box, without having to wrap PrintToConsole around a specific line of code?

Thank you

$\endgroup$
3
$\begingroup$

You can use

$PrePrint = PrintToConsole

which will have this effect. You can read more about this and other alternatives here.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.