Closed clonker closed 1 year ago
Maybe you should do something like:
if getattr(ipywidgets, version_info, False):
if ipywidgets.version_info[0] < 4:
raise ImportError()
If the ipywidgets version is stored in __version__
instead, then you know that the version is greater than 4!
Woo!
Test failures are unrelated, merging
Note that for earlier versions of ipywidgets,
__version__
doesn't exist so you may have to be creative with checking