qgrid icon indicating copy to clipboard operation
qgrid copied to clipboard

qgrid on Google Colab?

Open rcontesti opened this issue 5 years ago • 5 comments

Has anybody been able to to make Qgrid work on google colab? Thanks.

rcontesti avatar Jul 16 '19 11:07 rcontesti

I'd also be interested to get qgrid to display in Google Colab and in Kaggle Kernels.

I am able to get basic ipywidgets to work but not qgrid. Note I am also trying to get bqplot to work (where the Figure object is also a subclass of ipywidgets widget) with no luck.

On Google Colab

image

On Kaggle kernel

Following a successful

!pip install qgrid
!jupyter nbextension enable --py --sys-prefix widgetsnbextension
!jupyter nbextension enable --py --sys-prefix qgrid

image

I made a PR to the kaggle python Dockerfile to include qgrid and bqplot but it's not helpful if we can't get them to display 😢 .

marketneutral avatar Sep 10 '19 13:09 marketneutral

Also having trouble... after folowing above (and also trying pip install qgrid --user)

!pip install qgrid --user !jupyter nbextension enable --py --sys-prefix widgetsnbextension !jupyter nbextension enable --py --sys-prefix qgrid

I get the following error

Enabling notebook extension jupyter-js-widgets/extension... - Validating: OK Traceback (most recent call last): File "/usr/local/bin/jupyter-nbextension", line 8, in sys.exit(main()) File "/usr/local/lib/python2.7/dist-packages/jupyter_core/application.py", line 267, in launch_instance return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs) File "/usr/local/lib/python2.7/dist-packages/traitlets/config/application.py", line 658, in launch_instance app.start() File "/usr/local/lib/python2.7/dist-packages/notebook/nbextensions.py", line 988, in start super(NBExtensionApp, self).start() File "/usr/local/lib/python2.7/dist-packages/jupyter_core/application.py", line 256, in start self.subapp.start() File "/usr/local/lib/python2.7/dist-packages/notebook/nbextensions.py", line 896, in start self.toggle_nbextension_python(self.extra_args[0]) File "/usr/local/lib/python2.7/dist-packages/notebook/nbextensions.py", line 872, in toggle_nbextension_python logger=self.log) File "/usr/local/lib/python2.7/dist-packages/notebook/nbextensions.py", line 483, in enable_nbextension_python logger=logger) File "/usr/local/lib/python2.7/dist-packages/notebook/nbextensions.py", line 380, in _set_nbextension_state_python m, nbexts = _get_nbextension_metadata(module) File "/usr/local/lib/python2.7/dist-packages/notebook/nbextensions.py", line 1122, in _get_nbextension_metadata m = import_item(module) File "/usr/local/lib/python2.7/dist-packages/traitlets/utils/importstring.py", line 42, in import_item return import(parts[0]) ImportError: No module named qgrid

Berowne avatar Aug 22 '21 09:08 Berowne

Looks like they've got wheels in motion

charlie17 avatar Sep 04 '21 17:09 charlie17

Here's an example of it working: https://colab.research.google.com/gist/blois/3b36d0aa4c32d2ecc71e9208c32cf333/qgrid.ipynb

blois avatar Oct 13 '21 19:10 blois

Here's an example of it working: https://colab.research.google.com/gist/blois/3b36d0aa4c32d2ecc71e9208c32cf333/qgrid.ipynb

It looks like this did work, but I can't get a qgrid widget to appear on Colab today. Not with qgrid 1.1.1 or 1.3.1. Anyone have a working example?

keatonb avatar Jun 13 '22 13:06 keatonb