<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I'm working on getting our animated progressbars in astropy to work
in the IPython notebook. I found the recipe of using
"clear_output()" in this bug report:<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<a href="https://github.com/ipython/ipython/issues/1527">https://github.com/ipython/ipython/issues/1527</a><br>
<br>
That gets things closer, but unlike "\r" at a standard terminal,
clear_output() clears the entire output chunk, not just the last
line. So if we have multiple progress bars, or progress bars
interspersed with logging messages, all but the last progress bar
gets deleted.<br>
<br>
For example:<br>
<br>
from
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
IPython.core.display import clear_output<br>
<br>
print "Working"<br>
for i in range(80):<br>
clear_output()<br>
print "\r" + ("=" * i)<br>
<br>
Any suggestions?<br>
<br>
Mike<br>
</body>
</html>