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.Sun, 22 Nov 2015 22:02:44 +0100Multiple outputs with Sage Notebookhttps://ask.sagemath.org/question/30967/multiple-outputs-with-sage-notebook/ Hello Guys,
i have the following question. I use Sage on Windows so I use the Sage Notebook in my browser.
I wanted to know if there is a possibility to get more than one output from that without going to a new "compute cell" for everything i want to be computed... For example: When i have
sage: Zmod(7) +++
sage: R.<x> = Zmod(7)[]
sage: R +++
sage: RR = R.quotient(x^7 - 1)
sage: RR +++
sage: f = RR(x^6-x^4+x^3+x^2-1)
sage: f +++
sage: g = f^(-1)
sage: g +++
sage: g.parent() +++
sage: g*f +++
sage: f*g +++
i only get output from the last command (as result 1)
But i want to get output from every line i marked above with +++.
Is there annother possiblilty than using a new compute cell after every line i want to have output from?
Sun, 22 Nov 2015 20:02:21 +0100https://ask.sagemath.org/question/30967/multiple-outputs-with-sage-notebook/Answer by nbruin for <p>Hello Guys,</p>
<p>i have the following question. I use Sage on Windows so I use the Sage Notebook in my browser.
I wanted to know if there is a possibility to get more than one output from that without going to a new "compute cell" for everything i want to be computed... For example: When i have</p>
<pre><code>sage: Zmod(7) +++
sage: R.<x> = Zmod(7)[]
sage: R +++
sage: RR = R.quotient(x^7 - 1)
sage: RR +++
sage: f = RR(x^6-x^4+x^3+x^2-1)
sage: f +++
sage: g = f^(-1)
sage: g +++
sage: g.parent() +++
sage: g*f +++
sage: f*g +++
</code></pre>
<p>i only get output from the last command (as result 1)
But i want to get output from every line i marked above with +++.
Is there annother possiblilty than using a new compute cell after every line i want to have output from?</p>
https://ask.sagemath.org/question/30967/multiple-outputs-with-sage-notebook/?answer=30970#post-id-30970Use "print" for each of those lines.Sun, 22 Nov 2015 22:02:44 +0100https://ask.sagemath.org/question/30967/multiple-outputs-with-sage-notebook/?answer=30970#post-id-30970