Ask Your Question
0

Printing typeset output in the notebook?

asked 2015-09-19 04:34:49 -0500

Alasdair gravatar image

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!

edit retag flag offensive close merge delete

Comments

If any answer answers your question, please click the "tick" mark next to it.

slelievre gravatar imageslelievre ( 2016-11-04 11:51:08 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-09-19 10:24:59 -0500

Hello,

You can replace print X by X or pretty_print(X).

Vincent

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-09-19 04:34:49 -0500

Seen: 794 times

Last updated: Sep 19 '15