ipythonblocks icon indicating copy to clipboard operation
ipythonblocks copied to clipboard

call clear_output first in flash

Open terryyin opened this issue 11 years ago • 3 comments

It will make everybody's life slightly easier if we call clear_output first instead of last when flashing.

terryyin avatar May 06 '14 07:05 terryyin

Is this so that it stays visible afterwards?

jiffyclub avatar May 06 '14 15:05 jiffyclub

Yes, and so that you don’t need to always add a grid.show at the end.

On 6 May, 2014, at 11:55 pm, Matt Davis [email protected] wrote:

Is this so that it stays visible afterwards?

— Reply to this email directly or view it on GitHub.

terryyin avatar May 07 '14 01:05 terryyin

I'm giving this some thought. I can see the convenience of having the grid stay up at the end of loops, but with this change it's not really a "flash" method anymore, it's "show" with the output cleared first. But maybe that's okay? Or maybe it would make sense to add a clear_first option to .show that could have this behavior?

jiffyclub avatar May 07 '14 05:05 jiffyclub