pyodide-kernel icon indicating copy to clipboard operation
pyodide-kernel copied to clipboard

Access the pyodide object used by jupyterlite repl

Open rheanV opened this issue 3 years ago • 1 comments

Problem

I would like it if I could get access to the pyodide object underneath. I need to convert a javascript object to a python dictionary using pyodide and make it accessible to the jupyterLite repl.

Proposed Solution

Provide access to the pyodide object that jupyterlite is using

Additional context

rheanV avatar Dec 01 '22 21:12 rheanV

@rheanV the Pyodide kernel runs in a Web Worker and there is no access to the underlying Pyodide instance.

I need to convert a javascript object to a python dictionary using pyodide and make it accessible to the jupyterLite repl.

Where does the JavaScript object come from? Also which use case are you trying to address, as there might be alternative ways of solving this.

jtpio avatar Dec 13 '22 20:12 jtpio