First time here? Check out the FAQ!

Ask Your Question
1

suppressing output in notebook

asked 14 years ago

czsan gravatar image

How can I suppress output in notebook? In terminal mode I can write simply a semicolon after the command, but it does not work in notebooks.

Preview: (hide)

3 Answers

Sort by » oldest newest most voted
2

answered 13 years ago

Jason gravatar image

Another thing you can do is just put the keyword "None" as the last line in the cell. Example:

1+1
None
Preview: (hide)
link
1

answered 14 years ago

czsan gravatar image

I think the best solution is hiding the expression with an assignment statement.

Preview: (hide)
link
1

answered 14 years ago

Eviatar Bach gravatar image

If you have multiple lines in one cell it should not return anything. Of course, unless you invoke something which explicitly prints to the screen, such as plot or print.

Preview: (hide)
link

Comments

....as long as the last statement is not an expression which returns an object. Ej: a = 2+2 does not produce output

pang gravatar imagepang ( 13 years ago )

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,879 times

Last updated: Jan 16 '12