Skip to content

Update grid.py #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Update grid.py #36

wants to merge 1 commit into from

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
…opian#36)

Signed-off-by: Richard Lin <richard.lin.047@berkeley.edu>
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