Pytorch-lightning: Switch from tqdm to fastprogress for jupyter-lab friendly progress bars

Created on 15 Apr 2020  路  5Comments  路  Source: PyTorchLightning/pytorch-lightning

馃殌 Feature

Use https://github.com/fastai/fastprogress instead of tqdm for displaying progress bars.

Motivation

tqdm doesn't work well with Jupyter Lab. This creates issues with pytorch-lightning's progress bars, where each validation bar creates a newline in the cell output: #1399. This is a well-known issue in jupyter-widgets: https://github.com/jupyter-widgets/ipywidgets/issues/1845

The Fast.ai people developed fastprogress as a replacement for exactly this reason.

Pitch

Replace tqdm with fastprogress.

Alternatives

The alternative is to wait for jupyter-widgets to fix the issue on their side. Given that this issue has been around since November 2017, I'm not too hopeful that it will happen, though. It looks like this would require major design changes in ipywidgets and/or jupyter-lab.

Additional context

Motivated by #1399.

enhancement help wanted

Most helpful comment

Perhaps a fast progress callback could be a good lightning bolt (https://github.com/PyTorchLightning/lightning-bolts)???

All 5 comments

Could be done as a follow up to the progress bar callback PR 鉂わ笍

@tcwalther sorry, we don't want to add more dependencies to lightning.
If this is needed, then it should be added as a callback with a fresh implementation, but no dependencies :)

Perhaps a fast progress callback could be a good lightning bolt (https://github.com/PyTorchLightning/lightning-bolts)???

so open an issue there?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

srush picture srush  路  3Comments

remisphere picture remisphere  路  3Comments

jcreinhold picture jcreinhold  路  3Comments

versatran01 picture versatran01  路  3Comments

anthonytec2 picture anthonytec2  路  3Comments