IPython.display.clear_output() functionality for SageMathCell.

asked 2019-12-03 17:12:08 +0100

metallicmural99 gravatar image

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..

edit retag flag offensive close merge delete