Skip to content

Improved usability of WASM web REPL for testing/development. #97747

Closed
@katharosada

Description

@katharosada

Feature or enhancement

There's a demo python WASM REPL included in cpython for development and testing purposes.

It has the following issues:

  • It's currently impossible to 'stop' the python process - an infinite loop means you have to close the browser tab.
  • The 'Start REPL' button can be pressed multiple times while the program is running, this does not work as expected. It queues another REPL to start as soon as the current REPL exits.
  • Working in the REPL for testing is painful - especially since it's a limited REPL implementation, e.g. no up-arrow to repeat previous commands.

Example here: https://repl.ethanhs.me/

Pitch

I propose adding the following to the REPL:

  • A stop button that kills the webworker process (effectively terminating the python process)
  • Disabling the start button while there is an active python process running.
  • Adding a text area for python code so that code can be edited and executed multiple times.

Previous discussion

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions