Then I tried httpx which seems to require openssl (I added it to my environment.yml). This made the kernel unusable with the condole error: LinkError: WebAssembly.instantiate(): Import #92 module="env" function="time": imported function does not match the expected type. Complete output below.
I can confirm that requests lib works but I could not test it with https so far.
Context
JupyterLite version: 0.2.3
Operating System and version: debian bookworm
Browser and version: Chrome, Version 122.0.6261.111 (Official Build) (64-bit)
Browser Output
870.1260b274e8c70c25…0b274e8c70c25c3c4:2Uncaught (in promise) LinkError: WebAssembly.instantiate(): Import #92 module="env" function="time": imported function does not match the expected type
Thank you @DerThorsten. OT: I have tested xeus vs pyodide and I hope I can keep xeus. Being able to just provide the environment without extra installs is very useful.
this is fixed (a patch in IPython needed to be updated)
To use this, you will need the most recent build of IPython (ipython=8.22.2=py311had7285e_1).
(FYI, the most recent IPython also needs a very recent traitlets package )
A follow up on https://github.com/jupyterlite/pyodide-kernel/issues/96
Description
I tried xeus because adding additional pkgs seems far easier then in pyodide. But I ran into issues with network requests.
Reproduce
Using fetch seems to work in principle but gave me this error:
Then I tried
httpx
which seems to require openssl (I added it to my environment.yml). This made the kernel unusable with the condole error:LinkError: WebAssembly.instantiate(): Import #92 module="env" function="time": imported function does not match the expected type
. Complete output below.I can confirm that
requests
lib works but I could not test it with https so far.Context
Browser Output