ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 14 Aug 2020 12:39:43 +0200In Sage Notebook, does sage compile all programs in a cell ?https://ask.sagemath.org/question/52989/in-sage-notebook-does-sage-compile-all-programs-in-a-cell/Sometimes, in Sagenotebook, when I put many programs in the same cell, for example, the definition of a class, methods within this class and functions , it seems that Sage compiles the class defintions and methods, but ignores the functions.Thu, 13 Aug 2020 20:45:18 +0200https://ask.sagemath.org/question/52989/in-sage-notebook-does-sage-compile-all-programs-in-a-cell/Answer by slelievre for <p>Sometimes, in Sagenotebook, when I put many programs in the same cell, for example, the definition of a class, methods within this class and functions , it seems that Sage compiles the class defintions and methods, but ignores the functions.</p>
https://ask.sagemath.org/question/52989/in-sage-notebook-does-sage-compile-all-programs-in-a-cell/?answer=52997#post-id-52997If your question is
- [How to display full output in Jupyter, not only last result?](https://stackoverflow.com/q/36786722)
then one solution is
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
Fri, 14 Aug 2020 02:23:40 +0200https://ask.sagemath.org/question/52989/in-sage-notebook-does-sage-compile-all-programs-in-a-cell/?answer=52997#post-id-52997Comment by Emmanuel Charpentier for <p>If your question is</p>
<ul>
<li><a href="https://stackoverflow.com/q/36786722">How to display full output in Jupyter, not only last result?</a></li>
</ul>
<p>then one solution is</p>
<pre><code>from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
</code></pre>
https://ask.sagemath.org/question/52989/in-sage-notebook-does-sage-compile-all-programs-in-a-cell/?comment=53003#post-id-53003This should be mentioned in the documentation...Fri, 14 Aug 2020 11:21:37 +0200https://ask.sagemath.org/question/52989/in-sage-notebook-does-sage-compile-all-programs-in-a-cell/?comment=53003#post-id-53003Comment by mwageringel for <p>If your question is</p>
<ul>
<li><a href="https://stackoverflow.com/q/36786722">How to display full output in Jupyter, not only last result?</a></li>
</ul>
<p>then one solution is</p>
<pre><code>from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
</code></pre>
https://ask.sagemath.org/question/52989/in-sage-notebook-does-sage-compile-all-programs-in-a-cell/?comment=53006#post-id-53006Nice. Is there a similar option for SageCell?Fri, 14 Aug 2020 12:39:43 +0200https://ask.sagemath.org/question/52989/in-sage-notebook-does-sage-compile-all-programs-in-a-cell/?comment=53006#post-id-53006