Skip to content

WIP: Load pyodide.js to process Python code in browser

Boxiang Sun requested to merge Daetalus/erp5:master into master

Only display the result of Python code, the Python source code is not included.

TODO and current issues:

  1. Need to update pyodide webassembly module and related source code.
  2. Display the figure which generated by matplotlib
  3. The Python print statement output the result to the browser's console directly
  4. Python statement "from js import pyodide" seems going to "block" the rest of Python code's execution.

The 2nd and 4th issue maybe could be solved by update the pyodide.

Merge request reports