Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

html processing delay

Hello!

Could anyone please explain me why this code:

for i in range(7):
    html('<script>alert("Text %g");</script>' % i)
    time.sleep(1)

gives no alert messages before cell completely calculated? Is there any way to force immediate output processing?

html processing delay

Hello!

Could anyone please explain me why this code:

for i in range(7):
    html('<script>alert("Text %g");</script>' % i)
    time.sleep(1)

gives no alert messages before cell completely calculated? Is there any way to force immediate output processing?

Another example:

for x in range(10):
    html('$\\rho$')
    time.sleep(1)

This code gives immediate output as latex-commands like:

\rho
\newcommand{\Bold}[1]{\mathbf{#1}}

and after cell calculation is done it shows the correct symbols instead of latex-commands.