Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

IPython.display.clear_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..