"Blocking" code simply freezes the console. For example:
for i in range(3):
sleep(1)
print(i)
will freeze for 3 seconds, then print eveything at once. This is different from the expected behaviour and what happens in a normal ipython instance (each print happens 1 second from the previous).
"Blocking" code simply freezes the console. For example:
will freeze for 3 seconds, then print eveything at once. This is different from the expected behaviour and what happens in a normal ipython instance (each print happens 1 second from the previous).