Ask Your Question
0

Printing typeset output in the notebook?

asked 9 years ago

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!

Preview: (hide)

Comments

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

slelievre gravatar imageslelievre ( 8 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 9 years ago

vdelecroix gravatar image

Hello,

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

Vincent

Preview: (hide)
link

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: 9 years ago

Seen: 1,462 times

Last updated: Sep 19 '15