HP Forums

Full Version: Python in Browsers - any recommendations?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I see that as an alternative to downloading a Python app it is possible to run Python in browsers.
There are several alternative solutions - Pyscript, Brython, and many others.

One advantage of this would be that you avoid the need to select a compiler depending on your platform (Pythonista for Iphone, Pydroid or Qpython for Android, Numworks for most phones etc.) - Anywhere you can run a browser will work - Of course that rules out all calculators!

First impressions are that you seem to need to wrap the Python in some html - that's reminiscent of how the Python beta on HP Prime needs a PPL wrapper (if you have a version of HP Prime that supports Python).

If anyone has tried these, do you have any recommendations or tips?
Is it a workable alternative to a traditional compiler app?
https://pyscript.net/
https://realpython.com/brython-python-in-browser/
Out of Pyscript, Brython and the others, which is better?
There is currently a fault with Pyscript sign up.
It says the username must be at least 3 characters (which steveg1cmz is).

Update: Next day, login worked.
(04-01-2024 04:55 PM)StephenG1CMZ Wrote: [ -> ]...
First impressions are that you seem to need to wrap the Python in some html - that's reminiscent of how the Python beta on HP Prime needs a PPL wrapper (if you have a version of HP Prime that supports Python).
...

Python on the Prime doesn't need a PPL wrapper. You can create as many independent Python programs as you wish.

Günter
First impressions are that using pyscript is much much easier than trying to use javascript, and pyscript successfully ran my Savage benchmark and Zsys python.
Reference URL's