1 | initial version |
I tried to do a trick like:
html('<div id="mydiv"></div>')
And update it's content later:
import time
for i in range(10):
time.sleep(0.5)
html('<script>document.getElementById("mydiv").innerHTML = "Test % i"</script>' % i)
But this options cannot be used because of two things: it creates lots of empty newlines (after each html injection) and (I do not know why?) div block actually updates itself only after all calculation in current cell.