Skip to content

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

Closed

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

Activity

  1. changed the title [-]Improved usability of WASM web REPL for testing/development.[/-] [+]gh-97747: Improved usability of WASM web REPL for testing/development.[/+] on Oct 3, 2022
  2. changed the title [-]gh-97747: Improved usability of WASM web REPL for testing/development.[/-] [+]Improved usability of WASM web REPL for testing/development.[/+] on Oct 3, 2022
  3. brettcannon commented on Feb 27, 2024

    @brettcannon
    Member

    @katharosada Did you want me to leave this open to target this for WASI, or should I close this?

  4. added a commit that references this issue on May 31, 2024
  5. added a commit that references this issue on May 31, 2024
  6. added a commit that references this issue on May 31, 2024
  7. hugovk commented on Jun 15, 2024

    @hugovk
    Member

    @katharosada Did you want me to leave this open to target this for WASI, or should I close this?

    No reply in four months, let's close. We can always re-open.

  8. added a commit that references this issue on Jul 11, 2024
  9. added a commit that references this issue on Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions