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

Method update

pager_lib/tqdm/notebook.py:258–268  ·  view source on GitHub ↗
(self, n=1)

Source from the content-addressed store, hash-verified

256 # since this could be a shared bar which the user will `reset()`
257
258 def update(self, n=1):
259 try:
260 return super().update(n=n)
261 # NB: except ... [ as ...] breaks IPython async KeyboardInterrupt
262 except: # NOQA
263 # cannot catch KeyboardInterrupt when using manual tqdm
264 # as the interrupt will most likely happen on another statement
265 self.disp(bar_style='danger')
266 raise
267 # NB: don't `finally: close()`
268 # since this could be a shared bar which the user will `reset()`
269
270 def close(self):
271 if self.disable:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected