fastai / fastprogress

Simple and flexible progress bar for Jupyter Notebook and console
Apache License 2.0
1.08k stars 105 forks source link

TypeError: unsupported operand type(s) for +: 'NoneType' and 'int' #59

Closed rraminen closed 4 years ago

rraminen commented 4 years ago

The below error happens in most of the course-v3/nbs/dl2 note books ( from 09c_add_progress_bar.ipynb to 12c_ulmfit.ipynb) image So commented self.last_v = None in ProgressBar class, init() function.

sgugger commented 4 years ago

No, the none is needed to trigger some specific behavior (it means the bar has not been initialized) so this is not the right way to fix your problem. Will look into this today.

sgugger commented 4 years ago

Making an if none test where this value is used is better to fix this.