Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run pyimgui in web browser #7

Open
NaleRaphael opened this issue Nov 7, 2020 · 0 comments
Open

Run pyimgui in web browser #7

NaleRaphael opened this issue Nov 7, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@NaleRaphael
Copy link
Owner

(Just a memo for this feature request)

In order to make this application be easier for people to use and accessible from web, we've made a plan to make the whole application runnable on web.

For an application implemented in pure C++, it's possible to run imgui in web browser, e.g. hef/imgui-in-browser. But a transpiler is required to convert C++ code to wasm, e.g. Emscripten.

Since our implementation is mainly based on Python, there are at least these difficulties:

  1. As it's stated in this SO post, most of the Python-to-JavaScript transpilers are still at the early development stage.
  2. We are using C extension built from pyimgui, and we are not sure that C extensions are transpilable.

In branch build_for_web, it's possible to run this application on repl.it. However, it's required to switch the backend from pyglet to pygame, and the performance on repl.it is not well enough to be published.

@NaleRaphael NaleRaphael added the enhancement New feature or request label Nov 7, 2020
@NaleRaphael NaleRaphael self-assigned this Nov 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant