(self, pretty=None)
| 69 | class TqdmHBox(HBox): |
| 70 | """`ipywidgets.HBox` with a pretty representation""" |
| 71 | def _json_(self, pretty=None): |
| 72 | pbar = getattr(self, 'pbar', None) |
| 73 | if pbar is None: |
| 74 | return {} |
| 75 | d = pbar.format_dict |
| 76 | if pretty is not None: |
| 77 | d["ascii"] = not pretty |
| 78 | return d |
| 79 | |
| 80 | def __repr__(self, pretty=False): |
| 81 | pbar = getattr(self, 'pbar', None) |