Ask Your Question
1

How to clear the screen?

asked 10 years ago

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

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 10 years ago

tmonteil gravatar image

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

sage: !clear

or

sage: %clear
Preview: (hide)
link

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 10 years ago

Seen: 1,893 times

Last updated: Feb 06 '15