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 Python in browser #65

Open
mirh opened this issue Apr 30, 2021 · 4 comments
Open

Run Python in browser #65

mirh opened this issue Apr 30, 2021 · 4 comments

Comments

@mirh
Copy link

mirh commented Apr 30, 2021

I'm not really an experienced dev, but it is my understanding this was a discussed/requested in the past and there's an objective marginal preference for it.
Also, writing experiments only once wouldn't hurt.

With a quick search I found the following possible building blocks
https://github.com/tvst/jsbuilder
https://github.com/jggatc/pyjsdl
https://github.com/qquick/transcrypt
https://github.com/brython-dev/brython

@smathot
Copy link
Collaborator

smathot commented May 3, 2021

We considered this, but int he ended decided that the other way around is more feasible; that is, we will move towards making inline JavaScript work better on the desktop rather than making Python script work better in the browser. I'll leave this issue open though, because it will probably come up again at some point.

@mirh
Copy link
Author

mirh commented May 3, 2021

I guess that couldn't hurt either, but my rationale was that researchers are far more likely to be already at home with python than js.
I could also imagine some better integration with psychopy perhaps.

@mirh
Copy link
Author

mirh commented Nov 21, 2023

2 years later and the situation seems radically better
https://github.com/pyscript/pyscript
https://github.com/sagemathinc/cowasm
https://github.com/bytecodealliance/wasmtime-py
https://github.com/python/cpython/tree/main/Tools/wasm

Python devs are even planning to promote the web target to a tier 2 platform.

@smathot
Copy link
Collaborator

smathot commented Nov 22, 2023

Thanks! I'm aware that work is being done on this, and it's still on the radar for OSWeb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants