# 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.

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.

add a comment

2

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.

0

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

Asked: **
2011-01-14 06:29:45 -0600
**

Seen: **700 times**

Last updated: **Jan 15 '11**

suppressing output in notebook

Export notebook cell output as LaTeX?

How do I display the full output that includes graphics?

Can two people use a notebook at the same time?

how to get output in a mixed fraction?

Can't connect to notebook browser interface

How to load and use a PARI/GP script in Sage notebook?

use output of solve() without 'var == '

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.