suppressing output in notebook
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.
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.
Another thing you can do is just put the keyword "None" as the last line in the cell. Example:
1+1
None
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.
I think the best solution is hiding the expression with an assignment statement.
Asked: 2011-01-08 11:09:30 -0600
Seen: 1,342 times
Last updated: Jan 16 '12