MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _json_

Method _json_

pager_lib/tqdm/notebook.py:71–78  ·  view source on GitHub ↗
(self, pretty=None)

Source from the content-addressed store, hash-verified

69class 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)

Callers 1

__repr__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected