fastai / fastprogress

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

Misattribution of import errors #97

Open bradezard131 opened 2 years ago

bradezard131 commented 2 years ago

A failure to import IPython and matplotlib is falsely attributed to a a failure to import ipywidgets. Matplotlib is not a requirement for fastprogress and so this is an easy error to cause but requires source-code delving to debug. https://github.com/fastai/fastprogress/blob/e7d108f5906ed9ab8d90502ec8b6d0253bd0e3db/fastprogress/fastprogress.py#L97-L103

seeM commented 2 years ago

Just ran into this as well. In my case I was missing matplotlib. A simple fix would be to reword the error message. Nicer would be to enable as much functionality as possible without matplotlib if it doesn't exist. Not sure how much work that would need though.