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.
....as long as the last statement is not an expression which returns an object. Ej: a = 2+2 does not produce output
Asked: 14 years ago
Seen: 1,886 times
Last updated: Jan 16 '12