prompt-toolkit / prompt-toolkit/python-prompt-toolkit

Application on pyodide using xterm.js

Open
#1,514 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
10.6k
Forks
815
PR merge metrics
No merged PRs in 30d

Description

Feel free to treat this as a feature request.
Hello, I have an Application written in prompt_toolkit and I'd like to run in in the browser using pyodide. Sadly Javascript is not really my strong suite so I was wondering if there are plans by the maintainers to make this feasible, or if someone privately did it already?

I did some research and figured that Xterm.js might be a good candidate, as it has some VT100 emulation implemented already.
(my app is using asyncio everything, and pyodide has that featue now)
I don't wanna write code in javascript and HTML when it's only about a single page console-like app.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the prompt_toolkit Application model, its asyncio usage, and the proposed Pyodide and Xterm.js integration points. Determine whether a browser-based console is feasible and define a minimal supported example; done should include a documented working approach or a clear implementation plan.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, python
Domain
cli, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.