ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 16 Jan 2012 23:29:02 -0600suppressing output in notebookhttp://ask.sagemath.org/question/7857/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.Sat, 08 Jan 2011 11:09:30 -0600http://ask.sagemath.org/question/7857/suppressing-output-in-notebook/Answer by Eviatar Bach for <p>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.</p>
http://ask.sagemath.org/question/7857/suppressing-output-in-notebook/?answer=11946#post-id-11946If 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.Sat, 08 Jan 2011 11:42:49 -0600http://ask.sagemath.org/question/7857/suppressing-output-in-notebook/?answer=11946#post-id-11946Comment by pang for <p>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.</p>
http://ask.sagemath.org/question/7857/suppressing-output-in-notebook/?comment=20529#post-id-20529....as long as the last statement is not an expression which returns an object. Ej: a = 2+2 does not produce outputMon, 16 Jan 2012 23:29:02 -0600http://ask.sagemath.org/question/7857/suppressing-output-in-notebook/?comment=20529#post-id-20529Answer by czsan for <p>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.</p>
http://ask.sagemath.org/question/7857/suppressing-output-in-notebook/?answer=11952#post-id-11952I think the best solution is hiding the expression with an assignment statement.Mon, 10 Jan 2011 00:10:50 -0600http://ask.sagemath.org/question/7857/suppressing-output-in-notebook/?answer=11952#post-id-11952Answer by Jason for <p>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.</p>
http://ask.sagemath.org/question/7857/suppressing-output-in-notebook/?answer=13128#post-id-13128Another thing you can do is just put the keyword "None" as the last line in the cell. Example:
1+1
NoneMon, 16 Jan 2012 08:56:17 -0600http://ask.sagemath.org/question/7857/suppressing-output-in-notebook/?answer=13128#post-id-13128