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