-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Build the extension #6
Conversation
awesome! |
https://github.com/DerThorsten/jupyterlite_xeus_lua/blob/3a22e56672ef5aca0655fc64aaa39fac74e5b6a2/src/worker.ts#L45 I think this is where one can add the locateFile function |
Nice. Sounds like we should be able to use it indeed. |
@jtpio which browser are you using? I give it a try in a few minutes. |
Looks like it's for both Firefox 94.0b2 (developer edition) and Chromium 94. @DerThorsten do you still have the link to the previous demo (the JupyterLite fork)? To see if we hit the same code path as here: |
No the page was removed when I transferd the repo from my accound to jupyter-xeus I think. |
OK I was wondering whether the emscripten compile flags had changed in between |
@jtpio I just tried to build your changes on my machine but I am facing this:
EDIT: lets me try the steps as they are in the CI workflow..sry for potential spam =) |
Also you might want to clean some stuff up locally with:
|
@jtpio fyi, when I start the kernel I am getting this error on chrome:
|
@jtpio fyi with firefox I also see the "SharedArrayBuffer" thing |
ok, the reason for the error above is that the locateFile function does not return anything =) |
Which version is it? Wondering whether this might be related to recent updates: https://developer.chrome.com/blog/enabling-shared-array-buffer/ |
|
Ah that could explain why if these |
Maybe there is an emscripten flag what would help avoid generating code using it? Or is it required to be able to compile xeus? |
@jtpio I think this is required if we compile xeus with threads and for the widgets I think we need that. btw when I copy the wasm file to So maybe we should just use the |
Ah nice so the wasm file is loaded correctly even without the custom |
@jtpio yes! (but again, after coping by hand :) ) |
Marked as ready if you would like to get that in already, and then we continue in another PR (with the file copy trick) |
It would be fine to do the copy for now if that's the only way. Maybe we could then try to get webpack to do it automatically using the asset modules and constructing a new URL pointing the Still, we need to check how to handle this |
@jtpio once we have a running setup I can experiment around how to get ride of this / how to handle this |
Continuation of #3