-
Notifications
You must be signed in to change notification settings - Fork 257
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
A PyScript shell in the browser (i.e. PyScript support eval) #19
Comments
PyScript, and this whole project is amazing. If you get this working with an accompanied blogpost, it could be huge. My dream is to be able to distribute python written client side html documents with interactive plots and analysis. ipython (creating custom widgets, dashboard in python syntax etc, cc @ellisonbg ) and knitpy (cc @JanSchulz) could also likely benefit from self run pyscript. |
Dashboards and widgets in python and compiled to js would be cool! I really hate that to hack the notebook, I have to know JS :-/ But that doesn't so much depend on a full self-running py2js compiler but any py2js compiler... @datnamer what you envision is a python environment in the browser, kind of like python.exe or pypy... For this to happen, you not only need to support the whole python language but also support native libs, as I think that some libs for IPython / Jupyter use native libs... I'm no sure how much of IPython/Jupyter relies on such libs (json?), but the scipy stack does a lot (numpy, pandas, matplotlib,...), so running a notebook with these libs installed is probably not gonna happen soon :-( |
@JanSchulz Right, but the native libs can be compiled web assembly with emscripten, along with Numba code. Then there could be interop with JS typed arrays to make things easier. But I agree this is a bit of a stretch :) |
I should probably stress that PyScript is really just a way to write JS in a Pythonic way. This is where PyScript differs from Brython, pypyjs and friends (and this is why PyScript is way faster than Brython). Therefore, having an in browser PyScript shell would open up interesting possibilities, but I don't envision people doing data science in it; the repl would probably not feel Pythonic enough. |
Understood thanks. |
Another potential cool use of this: https://github.com/cfelde/cljs4excel |
haha |
Issue moved to flexxui/pscript #14 via ZenHub |
If PyScript can compile itself, we can generate a JS implementation of the PyScript transpiler, which means we can allow people to write PyScript directly in HTML docs, support
eval()
, and have a PyScript terminal. Sweeeet ...To get there:
This functionality is not really necessary from the point of view of
flexx.ui
, but it would open a lot of new possibilities, and brings PyScript into the same ballpark as Brython and Skulpt.The text was updated successfully, but these errors were encountered: