Ask Your Question

How to clear the screen?

asked 2015-02-06 19:05:40 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

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 :)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-02-06 21:03:10 +0200

tmonteil gravatar image

I don't know about the sage cloud, but you can try:

sage: !clear


sage: %clear
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2015-02-06 19:05:40 +0200

Seen: 1,404 times

Last updated: Feb 06 '15