https://pyscript.net/
[pyscript-s] Run Python in Your HTML
Wouldn't it be cool...
to run Python...
in your browser?
|
...|
print('Now you can!') |
|
|
Download
Get started with PyScript
1.
Download PyScript now.
2. Unzip the downloaded file.
3. Copy the assets you want to use and add the following lines to
your html file:
Install
Click here for instructions
Just kidding, you don't need to install anything.
To use PyScript you can either download it and follow the
instructions, or add the following lines to your page.
Click here for more info on how to use PyScript.
Say Hello to PyScript
PyScript is a framework that allows users to create rich Python
applications in the browser using HTML's interface. PyScript aims to
give users a first-class programming language that has consistent
styling rules, is more expressive, and is easier to learn.
What is PyScript? Well, here are some of the core components:
* Python in the browser: Enable drop-in content, external file
hosting (made possible by the Pyodide project, thank you!), 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
(c) 2022 Anaconda, Inc.