Post Reply 
Python in Browsers - any recommendations?
04-01-2024, 04:55 PM (This post was last modified: 04-01-2024 05:07 PM by StephenG1CMZ.)
Post: #1
Python in Browsers - any recommendations?
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?

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
04-01-2024, 08:38 PM (This post was last modified: 04-02-2024 10:35 PM by StephenG1CMZ.)
Post: #2
RE: Python in Browsers - any recommendations?
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.

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
04-02-2024, 09:46 PM
Post: #3
RE: Python in Browsers - any recommendations?
(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
Find all posts by this user
Quote this message in a reply
04-02-2024, 10:34 PM (This post was last modified: 04-03-2024 03:16 PM by StephenG1CMZ.)
Post: #4
RE: Python in Browsers - any recommendations?
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.

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
08-07-2024, 06:28 AM
Post: #5
RE: Python in Browsers - any recommendations?
I use Brython, it's the most mature. Still being developed over 10 years now.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)