First time here? Check out the FAQ!

Ask Your Question
1

Hide the Output

asked 14 years ago

stanislav gravatar image

I have just an other question.

Is it possible to hide the output from an expression especially in notebook mode? The ";" does not working, as I have seen.

Is there a way to do so?

Thanks.

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
2

answered 14 years ago

Felix Lawrence gravatar image

This question was also asked here. The answer is to use assignment:

sage: 1+1
2
sage: a = 1+1
sage: _ = 1+1

The last example is probably the best one to use most of the time, since "_" generally represents the result of the last evaluation (like the ANS button on a calculator). So if you assign to "_", then you're not "wasting" a variable. You'll see this trick used a lot in Sage's documentation.

Preview: (hide)
link
0

answered 14 years ago

stanislav gravatar image

Thank you for quick response. I will use the assignment to the _ variable.

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

Stats

Asked: 14 years ago

Seen: 1,563 times

Last updated: Jan 15 '11