Closed tuzz closed 5 months ago
Due to time constraints, the following tasks remain outstanding:
Visualising sense_hat graphics using the modified sense_hat package
- There is a work-in-progress pull request here
Apply HTTP headers in a service worker (see Investigate setting Pyodide HTTP headers via a service worker #903)
- Note that
crossorigin
will need to be added to cross-domain resources once the HTTP headers are added- Add unit/integration tests that run real Python programs through the PyodideRunner.jsx
- Manual testing for backwards compatibility of existing Python programs, projects and the WebComponent
Implementing the p5 package to work with Pyodide
Implementing a dedicated SQL editor for use in the Ada CS project
- Note that Pyodide supports importing
sqlite3
so we can add a UI wrapper around it
I'll make a general ticket to list the remaining work, feel free to add any additional bits or comments 👍
This pull request adds experimental support for running Python programs using Pyodide. The code is based on the python-execution-prototypes and the technical analysis document. The related GitHub issue is https://github.com/RaspberryPiFoundation/editor-ui/issues/891.
The PyodideRunner.jsx can be used instead of the current PythonRunner.jsx (Skulpt) by provided a
?pyodide=true
parameter in the URL as shown in the screenshot below:Notes
The PyodideRunner supports the following features:
Ctrl-d
Due to time constraints, the following tasks remain outstanding:
crossorigin
will need to be added to cross-domain resources once the HTTP headers are addedsqlite3
so we can add a UI wrapper around it