Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknw committed Sep 26, 2021
1 parent 5955e07 commit da21245
Showing 1 changed file with 2 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 @@ -338,6 +338,8 @@ def run_afar(magic_func, names, futures, capture_print, unique_key):
rv = {key: results[key] for key in names}

if magic_func._display_expr and worker is not None:
# Hopefully computing the repr is fast. If it is slow, perhaps it would be
# better to add the return value to rv and call repr_afar as a separate task.
pretty_repr = repr_afar(results.return_value, magic_func._repr_methods)
if pretty_repr is not None:
worker.log_event("afar-print", (unique_key, "display_expr", pretty_repr))
Expand Down

0 comments on commit da21245

Please sign in to comment.