Ask Your Question
0

Printing typeset output in the notebook?

asked 2015-09-19 11:34:49 +0100

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 17:51:08 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-09-19 17:24:59 +0100

vdelecroix gravatar image

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 11:34:49 +0100

Seen: 1,426 times

Last updated: Sep 19 '15