Skip to content

Commit

Permalink
Sparkles!
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknw committed Aug 21, 2021
1 parent 278f0bb commit c51888e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions afar/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ def _exit(self, exc_type, exc_value, exc_traceback):

out = Output()
display(out)
with out:
print("\N{SPARKLES} Running afar... \N{SPARKLES}")
# Can we show `distributed.progress` right here?
stdout_future.add_done_callback(
partial(print_outputs_async, out, stderr_future, repr_future)
Expand Down
1 change: 1 addition & 0 deletions afar/_printing.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def print_outputs_async(out, stderr_future, repr_future, stdout_future):
repr_val = repr_future.result()
else:
repr_val = None
out.clear_output()
if stdout_val or stderr_val or repr_val is not None:
with out:
if stdout_val:
Expand Down

0 comments on commit c51888e

Please sign in to comment.