jupyter / dashboards_server

[RETIRED] Server that runs and renders Jupyter notebooks as interactive dashboards
Other
181 stars 48 forks source link

qgrid.widget.js not found (404) #316

Open jluttine opened 7 years ago

jluttine commented 7 years ago

Not sure where I should ask about this so I decided to try here. (I guess this issue is related to the dashboard because it only appears in the dashboard server, not in the regular Jupyter notebook server.)

I installed qgrid widget and it works perfectly in my Jupyter Notebook session. In the same conda environment I have installed Jupyter Dashboard which works well (e.g., ipywidgets widgets work perfectly) except that the qgrid widget doesn't work in the dashboard. I get the following error:

GET /nbextensions/qgridjs/qgrid.widget.js 404 75.753 ms - 2261

Any ideas what could be wrong and how to fix or workaround? Thanks!

EDIT: Actually, the error message is now:

GET /dashboards/status-sites/nbextensions/qgridjs/qgrid.widget.js 404 22.122 ms - 1002

That is, dashboards and the notebook name (status-sites) are in the URL. Not sure why the URL was different previously. Probably I was just trying manually to load the former URL and got confused.

jhpedemonte commented 7 years ago

If I recall correctly, you need to install the widget as part of the kernel gateway. See Dockerfile.kernel.

jluttine commented 7 years ago

Thanks for the comment! I didn't quite understand from the link how to install as part of the kernel gateway instead of just installing normally in the environment. As far as I understand that link, there's just normal pip install commands for widgets. My kernel gateway is in the same conda environment as the Jupyter notebook server and everything else related to this.

jhpedemonte commented 7 years ago

OK, that sounds right. @parente would be able to comment better about the Conda environment.

parente commented 7 years ago

This is probably the same situation as https://github.com/jupyter-incubator/dashboards_server/issues/301 where the custom widget JS is not bundled with the dashboard server and therefore is not available in the frontend without manual work.