Closed fr34q closed 6 years ago
This is a bug of jupyterwidgets. Closed widgets leave an empty <div>
container which is displayed by a blank space.
Solutions:
<div>
cells (as I did it for the ipython notebook way of progressbar)clear_output()
and display all progressbarsprogress_bar = False
to supress the creation for PBs in the inner loop. I think for 1e5 iterations in 11secs, as shown in the picture, a PB is not neededIssue described here: https://github.com/jupyter-widgets/ipywidgets/issues/1845 and fixed in release 7.2 of ipywidgets
Therefore, to fix the issue upgrading local ipywidgets installation is sufficient:
pip install --upgrade ipywidgets
If a progress bar is replaced by a new one (e.g. in nested loops) the old one will still need some space in the notebook (tested in JupyterLab) so the new bar is placed a bit beneath creating more and more empty space in nested loops.
Example:![screenshot](https://user-images.githubusercontent.com/2014206/39361246-d91c07c6-4a21-11e8-8d89-dc8a82bb94fe.png)
Expected behavior: Progress bar vanishes (display: none) or is even removed from DOM entirely.