Skip to content

Commit

Permalink
Change ipywidgets version check to use __version__ instead of version…
Browse files Browse the repository at this point in the history
…_info. Fixes Issue markovmodel#1571.
  • Loading branch information
clonker committed Aug 26, 2022
1 parent 00df5db commit 59c9699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyemma/_base/progress/reporter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def _attached_to_ipy_notebook_with_widgets():
try:
# check for widgets
import ipywidgets
if ipywidgets.version_info[0] < 4:
if int(ipywidgets.__version__.split('.')[0]) < 4:
raise ImportError()
# check for ipython kernel
from IPython import get_ipython
Expand Down

0 comments on commit 59c9699

Please sign in to comment.