xeus-python icon indicating copy to clipboard operation
xeus-python copied to clipboard

Pyodide based xeus-python as a hybrid of xeus-python and pyodide

Open MRYingLEE opened this issue 1 year ago • 2 comments

I am using a few kernels along with Jupyterlite. I understand the architecture differences between xeus-python and pyodide-kernel as an end user.

Just curious, is it needed and possible to have a Pyodide version of xeus-python? Maybe we call it xeus-pyodide.

In theory, the code base of xeus-pyodide will be much smaller that of pyodide-kernel. And the flexibility of xeus-pyodide will be much better than xeus-python. At the same time the overhead should be limited for most users will use a few xeus-based kernels at the same time.

Any thoughts?

MRYingLEE avatar Sep 03 '24 12:09 MRYingLEE

I'm unfortunately unsure this is possible/what shape this would take

And the flexibility of xeus-pyodide will be much better than xeus-python

Can you elaborate on this? I'm curious what kind of flexibility that would provide.

martinRenou avatar Sep 03 '24 12:09 martinRenou

In Pyodide, it is possible to dynamically install packages, which is lacking in xeus-python so far. This is a critical feature in many situations.

MRYingLEE avatar Sep 03 '24 12:09 MRYingLEE