You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not possible to import scipy.interpolate in a jupyterlite deployment with the xeus-python kernel and packages from the https://repo.mamba.pm/emscripten-forge repo.
Reproduce
Create a new xeus-python-demo deployment using the template
Edit the environment.yml file to add scikit-learn (just scipy is probably enough)
Browser and version: firefox or chrome, does not matter.
Browser Output
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data [serverconnection.js:90:24](webpack://_JUPYTERLAB.CORE_OUTPUT/node_modules/@jupyterlab/services/lib/serverconnection.js)
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data [serverconnection.js:90:24](webpack://_JUPYTERLAB.CORE_OUTPUT/node_modules/@jupyterlab/services/lib/serverconnection.js)
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data [serverconnection.js:90:24](webpack://_JUPYTERLAB.CORE_OUTPUT/node_modules/@jupyterlab/services/lib/serverconnection.js)
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data [serverconnection.js:90:24](webpack://_JUPYTERLAB.CORE_OUTPUT/node_modules/@jupyterlab/services/lib/serverconnection.js)
XHRGET
https://ogrisel.github.io/xeus-python-sklearn-demo/api/contents/lib/python3.11/site-packages/scipy/interpolate/all.json
[HTTP/2 404 22ms]
don't worry, about SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data... nothing's broken. If there had been a
file at https://ogrisel.github.io/xeus-python-sklearn-demo/api/contents/lib/python3.11/site-packages/scipy/interpolate/all.json, you might see some more files. contents.js:724:24
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data serverconnection.js:90:24
Could not resolve location of /lib/python3.11/site-packages/scipy/interpolate/init.py on server registry.js:317:28
Path resolution bailing: does not exist renderers.js:824:24
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data serverconnection.js:90:24
Could not resolve location of /lib/python3.11/site-packages/scipy/interpolate/_interpolate.py on server registry.js:317:28
Path resolution bailing: does not exist renderers.js:824:24
The text was updated successfully, but these errors were encountered:
Description
It is not possible to import
scipy.interpolate
in a jupyterlite deployment with the xeus-python kernel and packages from the https://repo.mamba.pm/emscripten-forge repo.Reproduce
scipy.interpolate
in it.Note that I cannot reproduce the problem when importing scipy.interpolate in a local XPython kernel (using regular jupyterlab instead of jupyterlite).
Note that the JS console complains about a 404 error when attempting to fetch:
https://ogrisel.github.io/xeus-python-sklearn-demo/api/contents/lib/python3.11/site-packages/scipy/interpolate/all.json
So it looks like a packaging problem to me.
Expected behavior
scipy should be importable and usable.
Context
Browser Output
The text was updated successfully, but these errors were encountered: