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.Tue, 03 Dec 2019 17:12:08 +0100IPython.display.clear_output() functionality for SageMathCell.https://ask.sagemath.org/question/48932/ipythondisplayclear_output-functionality-for-sagemathcell/ I have a loop which outputs a graphic object (a plot) for each step. But I would like to replace the plot with the plot from the next iteration so I can see the progress as the loop runs. When I am using a jupyter notebook I can do this using the clear_output() function from IPython.display.
However, I am trying to use the SageMathCell server to make the program able to run completely in the browser (without having to go through CoCalc). But I am trouble clearing the output in the sage cell after each iterate of a loop..
metallicmural99Tue, 03 Dec 2019 17:12:08 +0100https://ask.sagemath.org/question/48932/How to clear the screen?https://ask.sagemath.org/question/25751/how-to-clear-the-screen/Hey!
I am using Sage in the Sage cloud website.
I have an infinite loop that shows a result each time it is run, only I don't want to see a billion results in my display, i'd like to clear the display everytime the loop runs. I tried the "clear" function but it does not exist. Do you know any function that would clear the screen? Or an alternate way of doing the same thing (something like a dynamic way of displaying data)
Thank you :)DiventoxFri, 06 Feb 2015 19:05:40 +0100https://ask.sagemath.org/question/25751/How can I clear an assignment to a variable?https://ask.sagemath.org/question/8172/how-can-i-clear-an-assignment-to-a-variable/If I assign a symbolic expression to a variable, how do I clear the assignment as if I didn't assign anything to it in the first place?
For example,
sage: var('a,b')
(a, b)
sage: x=a+b
sage: x
a + b
sage: var(x)
a + b
sage: x
a + b
sage: x=x
sage: x
a + b
Here, I assigned a+b to x. But I can't 'unassign' it.
In Mathematica this can be done with Clear[x].
Thanks.omoplataMon, 20 Jun 2011 16:46:38 +0200https://ask.sagemath.org/question/8172/