qkitgroup / qkit

Qkit framework
GNU General Public License v2.0
43 stars 46 forks source link

Removed progress bar does not vanish completely #40

Closed fr34q closed 6 years ago

fr34q commented 6 years ago

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

Expected behavior: Progress bar vanishes (display: none) or is even removed from DOM entirely.

Schneider1 commented 6 years ago

This is a bug of jupyterwidgets. Closed widgets leave an empty <div> container which is displayed by a blank space.

Solutions:

fr34q commented 6 years ago

Issue 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