Hide the Output
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.
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.
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.
Thank you for quick response. I will use the assignment to the _ variable.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2011-01-14 13:29:45 +0100
Seen: 1,501 times
Last updated: Jan 15 '11
suppressing output in notebook
How do I display the full output that includes graphics?
default startup options for sage notebook
Notebook List Object Data Storage/Retrieval? (Start/Restart)
Short Cython Example In A Notebook Cell?
how to get output in a mixed fraction?