Skip to content

Conversation

@DerThorsten
Copy link
Collaborator

No description provided.

logger: this.logger
});
// Load shared libs'
const is_emscripten_4x_or_higher = true; // fixme
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for future, we may be able to detect the emscripten abi version in the env?

} catch (e) {
console.log("kernelSpec.argv: ", kernelSpec.argv);
// try {
// this.xkernel = new this.Module.xkernel(kernelSpec.argv);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All kernels need to support beeing constructed from kernelSpec.argv because we cannot use the try-catch block with emscripten-4x.
One gets errrors about bindings for the kernels beeing registerd multiple times...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc. @anutosh491 for awareness.

I don't remember exactly the detail but we decided to have this try/catch for backward compat with some kernel that don't take argv.

Copy link
Contributor

@anutosh491 anutosh491 Nov 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh @DerThorsten ,

Yes we needed to pass the kernelSpec.argv because for xeus-cpp-lite. So that the kernels can respect the C++ versions passed from the kernel spec at runtime.

Check

jupyter-xeus/xeus-lite#16 in xeus-lite

and

#210 in jupyterlite-xeus (which was improved to #218)

Removed unused WebAssembly types and classes from worker.base.ts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants