PyScript: Run Python in your HTML
pyscript.net
PyScript: Run Python in your HTML
1–10 of 71 posts
Re: PyScript: Run Python in your HTML
#2https://github.com/pyscript/pyscript
Would be nice if there was a demo on the page that didn’t require installing NPM and other stuff on my machine.
Re: PyScript: Run Python in your HTML
#3Re: PyScript: Run Python in your HTML
#4Regarding the size of the download, I know there is ongoing work in the Pyodide project to create a much smaller python runtime that will help tremendously. Also, the script will be cached once you download it once.
EDIT: Also, you don't need NPM or anything locally to run these
Re: PyScript: Run Python in your HTML
#5https://pyscript.net/examples/
(This was presented today as a pycon keynote talk!)
Re: PyScript: Run Python in your HTML
#6Re: PyScript: Run Python in your HTML
#7Is this similar at all to the old pyjs/pyjamas project? I had some fun playing with that but there was no way I would have ever actually made anything serious with it.
Re: PyScript: Run Python in your HTML
#8Is this similar at all to the old pyjs/pyjamas project? I had some fun playing with that but there was no way I would have ever actually made anything serious with it.
This is the actual CPython runtime with full standard library and many of the Python mathematical and plotting libraries compiled to WASM, running in the browser. It can also be included with other HTML and JavaScript on a web page just by wrapping the Python in a tag.
Re: PyScript: Run Python in your HTML
#9Re: PyScript: Run Python in your HTML
#10For some reason, I can't see this linked anywhere on the site, but there is an examples page: https://pyscript.net/examples/ (This was presented today as a pycon keynote talk!)