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

Method close

pager_lib/tqdm/notebook.py:270–282  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

268 # since this could be a shared bar which the user will `reset()`
269
270 def close(self):
271 if self.disable:
272 return
273 super().close()
274 # Try to detect if there was an error or KeyboardInterrupt
275 # in manual mode: if n < total, things probably got wrong
276 if self.total and self.n < self.total:
277 self.disp(bar_style='danger', check_delay=False)
278 else:
279 if self.leave:
280 self.disp(bar_style='success', check_delay=False)
281 else:
282 self.disp(close=True, check_delay=False)
283
284 def clear(self, *_, **__):
285 pass

Callers 1

displayMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected