qgrid
qgrid copied to clipboard
Error loading qgrid widget
Environment
- Operating System: Ubuntu 16.04 LTS
- Python Version: Python 2.7.12
- How did you install Qgrid:
pip - Python packages:
notebook 5.4.1
ipywidgets 7.2.1
qgrid 1.0.2
Description of Issue
- What did you expect to happen?
Expected to show the widget, or else an error
- What happened instead?
Notebook shows nothing
Reproduction Steps
Simply run the example from README ...
What steps have you taken to resolve this already?
Inspect webpage shows:
Error: Script error for "qgrid" http://requirejs.org/docs/errors.html#scripterror
Unhandled Promise Rejection: Error: Script error for "qgrid"
http://requirejs.org/docs/errors.html#scripterror
Anything else
I am running jupyter notebook on a Virtualbox instance with port forwarding to host.
I thought I saw another error in inspection related to loading ../static/qgrid.js, but I am not able to reproduce that error.
I would love to give Qgrid a try, seems just the tool I was missing! Thanks in advance!
Hmm did enabling the qgrid and ipywidgets nbextensions succeed?
jupyter nbextension enable --py --sys-prefix qgrid
jupyter nbextension enable --py --sys-prefix widgetsnbextension
You can check on the status of your nbextensions by running jupyter nbextension list. The output should look something like this:
notebook section
jupyter-js-widgets/extension enabled
- Validating: OK
qgrid/extension enabled
- Validating: OK
I'm running into the same exact issue.
I'm using Jupyter 4.4.0 as part of JupyterHub docker image (0.8 "Id": "sha256:4a49d2cdd097e4d5224257f56c7b127ec0bbf766c90a5133e83f056f06aea7c8").
qgrid.js doesn't seem to be present on the container even though it was successfully installed via pip on the virtual environment. I can instantiate qgrid_widget and use it but it won't render on the notebook due to the missing JavaScript file.
qgrid.js
root@83514a13f599:/# find / -name qgrid.js
In contrast: require.js
root@83514a13f599:/srv/jupyterhub# find / -name require.js
/opt/conda/lib/python3.5/site-packages/notebook/static/components/requirejs/require.js
/opt/conda/lib/python3.5/site-packages/declarativewidgets/static/urth_components/requirejs/require.js
/opt/conda/lib/python3.5/site-packages/jupyter_dashboards/nbextension/notebook/bower_components/requirejs/require.js
/opt/conda/lib/node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/require.js
/opt/conda/pkgs/nodejs-6.12.2-0/lib/node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/require.js
/opt/conda/pkgs/jupyter_dashboards-0.7.0-py35_0/lib/python3.5/site-packages/jupyter_dashboards/nbextension/notebook/bower_components/requirejs/require.js
/opt/conda/pkgs/notebook-5.4.0-py35_0/lib/python3.5/site-packages/notebook/static/components/requirejs/require.js
/opt/conda/share/jupyter/hub/static/components/requirejs/require.js
/opt/conda/share/jupyter/nbextensions/jupyter_dashboards/notebook/bower_components/requirejs/require.js
/opt/conda/envs/dashboard/lib/python3.5/site-packages/notebook/static/components/requirejs/require.js
/opt/conda/envs/dashboard/lib/python3.5/site-packages/declarativewidgets/static/urth_components/requirejs/require.js
/opt/conda/envs/dashboard/lib/python3.5/site-packages/jupyter_dashboards/nbextension/notebook/bower_components/requirejs/require.js
/opt/conda/envs/dashboard/lib/node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/require.js
/opt/conda/envs/dashboard/share/jupyter/hub/static/components/requirejs/require.js
/opt/conda/envs/dashboard/share/jupyter/nbextensions/jupyter_dashboards/notebook/bower_components/requirejs/require.js
Jupyter extensions enabled:
(dashboard) root@83514a13f599:/srv/jupyterhub# jupyter nbextension list
Known nbextensions:
config dir: /opt/conda/envs/dashboard/etc/jupyter/nbconfig
notebook section
qgrid/extension enabled
- Validating: OK
nbpresent/js/nbpresent.min enabled
- Validating: OK
jupyter-js-widgets/extension enabled
- Validating: OK
nb_conda/main enabled
- Validating: OK
nbdime/index enabled
- Validating: OK
jupyter_dashboards/notebook/main enabled
- Validating: OK
tree section
nb_conda/tree enabled
- Validating: OK
I even restarted the container but no luck either.
Suggestions @TimShawver ?
(perhaps install qgrid.js manually from a CDN? ... anything is game at this point)

Did someone managed to get this fixed, because i have the exact same problem... I'm using a conda env (because it's a managed jupyter installation and I'm not allowed to install any packages globally) with qgrid enabled, but there is no qgrid.js anywhere on the system.
I have the same problems.