Python in Browsers - any recommendations? - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: Not HP Calculators (/forum-7.html) +--- Forum: Not remotely HP Calculators (/forum-9.html) +--- Thread: Python in Browsers - any recommendations? (/thread-21540.html) |
Python in Browsers - any recommendations? - StephenG1CMZ - 04-01-2024 04:55 PM 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? RE: Python in Browsers - any recommendations? - StephenG1CMZ - 04-01-2024 08:38 PM 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. RE: Python in Browsers - any recommendations? - Guenter Schink - 04-02-2024 09:46 PM (04-01-2024 04:55 PM)StephenG1CMZ Wrote: ... Python on the Prime doesn't need a PPL wrapper. You can create as many independent Python programs as you wish. Günter RE: Python in Browsers - any recommendations? - StephenG1CMZ - 04-02-2024 10:34 PM 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. |