ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 04 Nov 2016 17:51:08 +0100Printing typeset output in the notebook?https://ask.sagemath.org/question/29495/printing-typeset-output-in-the-notebook/I'm sure this is a very trivial question, but I've not been able to find a simple answer.
If I use a `print` statement within a loop then the output so produced is not typeset, even though I have the typeset box ticked, and results of single commands are typeset. Is there an alternative to `print` which produces typeset output? I'm using Sage 6.2 in Ubuntu 14.04.
Thanks!Sat, 19 Sep 2015 11:34:49 +0200https://ask.sagemath.org/question/29495/printing-typeset-output-in-the-notebook/Comment by slelievre for <p>I'm sure this is a very trivial question, but I've not been able to find a simple answer. </p>
<p>If I use a <code>print</code> statement within a loop then the output so produced is not typeset, even though I have the typeset box ticked, and results of single commands are typeset. Is there an alternative to <code>print</code> which produces typeset output? I'm using Sage 6.2 in Ubuntu 14.04.</p>
<p>Thanks!</p>
https://ask.sagemath.org/question/29495/printing-typeset-output-in-the-notebook/?comment=35427#post-id-35427If any answer answers your question, please click the "tick" mark next to it.Fri, 04 Nov 2016 17:51:08 +0100https://ask.sagemath.org/question/29495/printing-typeset-output-in-the-notebook/?comment=35427#post-id-35427Answer by vdelecroix for <p>I'm sure this is a very trivial question, but I've not been able to find a simple answer. </p>
<p>If I use a <code>print</code> statement within a loop then the output so produced is not typeset, even though I have the typeset box ticked, and results of single commands are typeset. Is there an alternative to <code>print</code> which produces typeset output? I'm using Sage 6.2 in Ubuntu 14.04.</p>
<p>Thanks!</p>
https://ask.sagemath.org/question/29495/printing-typeset-output-in-the-notebook/?answer=29500#post-id-29500Hello,
You can replace **print X** by **X** or **pretty_print(X)**.
VincentSat, 19 Sep 2015 17:24:59 +0200https://ask.sagemath.org/question/29495/printing-typeset-output-in-the-notebook/?answer=29500#post-id-29500