Run Python in Your HTML
<html>
...
<py-script> print('Now you can!') </py-script>
</html>
Examples
Click here for example projects
Documentation
Click here for PyScript documentation
Install
Click here for instructions
Please be advised that PyScript is very alpha and under heavy development. There are many known issues,
from usability to loading times, and you should expect things to change often. We encourage people to play
and explore with PyScript, but at this time we do not recommend using it for production.
pyscript_dev
@pyscript_dev
PyScript - programming for the 99%
Follow us on Twitter
Say Hello to PyScript
PyScript is a framework that allows users to create rich Python applications in the
browser using HTML's interface and the power of Pyodide, WASM, and modern web
technologies. The PyScript framework provides users at every experience level with
access to an expressive, easy-to-learn programming language with countless
applications.
What is PyScript? Well, here are some of the core
components:
Python in the browser: Enable drop-in content, external file hosting, and application
hosting without the reliance on server-side configuration
Python ecosystem: Run many popular packages of Python and the scientific stack
(such as numpy, pandas, scikit-learn, and more)
Python with JavaScript: Bi-directional communication between Python and
Javascript objects and namespaces
Environment management: Allow users to define what packages and files to
include for the page code to run
Visual application development: Use readily available curated UI components,
such as buttons, containers, text boxes, and more
Flexible framework: A flexible framework that can be leveraged to create and
share new pluggable and extensible components directly in Python
All that to say… PyScript is just HTML, only a bit (okay, maybe a lot) more powerful,
thanks to the rich and accessible ecosystem of Python libraries.
In short, our mission is to bring programming for the 99%.
Project home © 2022 Anaconda, Inc.