Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Oct 7, 2015

Wrong import was causing warnings with ipython 4.

/usr/local/lib/python2.7/dist-packages/IPython/html.py:14: ShimWarning: The IPython.html package has been deprecated. You should import from notebook instead. IPython.html.widgets has moved to ipywidgets.
"IPython.html.widgets has moved to ipywidgets.", ShimWarning)
Traceback (most recent call last):
File "memsee.py", line 13, in
import qgrid
File "/usr/local/lib/python2.7/dist-packages/qgrid/init.py", line 1, in
from .grid import (
File "/usr/local/lib/python2.7/dist-packages/qgrid/grid.py", line 204, in
class QGridWidget(widgets.DOMWidget):
File "/usr/local/lib/python2.7/dist-packages/IPython/utils/shimmodule.py", line 92, in getattr
raise AttributeError(key)
AttributeError: DOMWidget

@ssanderson
Copy link
Contributor

@ricardo-gamboa the code as written works for me:

In [3]: !pip freeze | grep widgets
ipywidgets==4.0.3

In [4]: from ipywidgets import widgets

In [5]: widgets.DOMWidget
Out[5]: ipywidgets.widgets.widget.DOMWidget

What version of IPython and ipywidgets are you using?

@ghost
Copy link
Author

ghost commented Oct 7, 2015

Sorry, you were right, the problem was my ipywidgets version.

@ssanderson ssanderson closed this Oct 7, 2015
@ssanderson
Copy link
Contributor

No worries. Thanks for taking the time to provide a fix.

richardlin047 added a commit to richardlin047/modin-spreadsheet that referenced this pull request Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants