##// END OF EJS Templates
Added wait=True to a couple more clear_output calls.
Jonathan Frederic -
Show More
@@ -391,7 +391,7 b' class AsyncResult(object):'
391 391 tic = time.time()
392 392 while not self.ready() and (timeout < 0 or time.time() - tic <= timeout):
393 393 self.wait(interval)
394 clear_output()
394 clear_output(wait=True)
395 395 print("%4i/%i tasks finished after %4i s" % (self.progress, N, self.elapsed), end="")
396 396 sys.stdout.flush()
397 397 print()
@@ -271,7 +271,7 b''
271 271 " # We clear the notebook output before plotting this if in-place \n",
272 272 " # plot updating is requested\n",
273 273 " if in_place:\n",
274 " clear_output()\n",
274 " clear_output(wait=True)\n",
275 275 " display(fig)\n",
276 276 " \n",
277 277 " return fig"
@@ -333,7 +333,7 b''
333 333 " msg = 'Simulation completed!'\n",
334 334 " tmon = dt.datetime.now() - t0\n",
335 335 " if plots_in_place and fig is not None:\n",
336 " clear_output()\n",
336 " clear_output(wait=True)\n",
337 337 " plt.close('all')\n",
338 338 " display(fig)\n",
339 339 " print msg\n",
@@ -281,7 +281,7 b''
281 281 " plt.axis('off')\n",
282 282 " # We clear the notebook output before plotting this if in-place plot updating is requested\n",
283 283 " if in_place:\n",
284 " clear_output()\n",
284 " clear_output(wait=True)\n",
285 285 " display(fig)\n",
286 286 " return fig"
287 287 ],
@@ -377,7 +377,7 b''
377 377 " msg = 'Simulation completed!'\n",
378 378 " tmon = dt.datetime.now() - t0\n",
379 379 " if plots_in_place and fig is not None:\n",
380 " clear_output()\n",
380 " clear_output(wait=True)\n",
381 381 " plt.close('all')\n",
382 382 " display(fig)\n",
383 383 " print msg\n",
General Comments 0
You need to be logged in to leave comments. Login now