Skip to content

Commit

Permalink
Add FAQ entry about drawing before update()
Browse files Browse the repository at this point in the history
  • Loading branch information
avylove committed Aug 26, 2023
1 parent b400c53 commit 75e52fc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,10 @@ As a temporary workaround, ``manager._primed = False`` at the end of the cell be
:py:meth:`~enlighten.NotebookManager.stop`. Note, this will result in double output in other
environments so should only be used if the display is cleared first or the code is limited to
running in this extension.

Why isn't my progress bar displayed until :py:meth:`~enlighten.Counter.update` is called?
-----------------------------------------------------------------------------------------

Progress bars and counters are not automatically drawn when created because some fields may be
missing if subcounters are used. To force the counter to draw before updating, call
:py:meth:`~enlighten.Counter.refresh`

0 comments on commit 75e52fc

Please sign in to comment.