jupyter-widgets-contrib / ipysheet

Jupyter handsontable integration
MIT License
543 stars 68 forks source link

Uncaught (in promise) Error: Script error for "ipysheet" #215

Closed afonit closed 3 years ago

afonit commented 3 years ago
package version
jupyterlab 3.1.11
voila 0.2.12
ipysheet 0.5.0

Using ipysheet in jupyter lab is working fine. I was prototyping a solution and wanted to see what it looked like in Voila.

I used the below example:

import ipysheet

sheet = ipysheet.sheet(rows=3, columns=1)
column1 = ipysheet.column(0, [1,2,3])

sheet

When I click on the Voila icon in Jupyter Lab to generate the view I get a blank page. I opened the Chrome Developer tools to see what the console was saying, here are the messages:

Failed to load resource: the server responded with a status of 404 (Not Found)
2voila.js?v=71f4d4c8cb842740eb7d318f4514d363eb3fb79755535ccc9aea4ddba30cd7b30d9793b2f168bb6ec366ba8b0b1b17a8a94fb48871ff9e7f3a305acf997d9531:469 Falling back to https://cdn.jsdelivr.net/npm/ for ipysheet@~0.5.0
index.js:1 Failed to load resource: the server responded with a status of 404 ()
2Untitled444.ipynb:45 Could not instantiate widget
console.error @ Untitled444.ipynb:45
5require.min.js:1 Uncaught (in promise) Error: Script error for "ipysheet"
http://requirejs.org/docs/errors.html#scripterror
    at makeError (require.min.js:1)
    at HTMLScriptElement.onScriptError (require.min.js:1)
:8888/dask/dashboard/ca8e34c8-b03b-4b21-943b-7ba8067b2ed0/individual-plots.json?1636028429046:1 Failed to load resource: the server responded with a status of 404 (Not Found)
afonit commented 3 years ago

For some reason I did not find this issue before, but I have now; https://github.com/voila-dashboards/voila/issues/945

I now started voila with this flag: --enable_nbextensions=True

and ipysheet eventually renders.