Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
133 views

PyScript - Run Python in Your HTML

PyScript is a new framework that allows users to write Python code directly in HTML using <py-script> tags. It enables Python code to run in the browser using technologies like WASM and modern web APIs. The framework provides access to the Python ecosystem and bi-directional communication between Python and JavaScript. However, PyScript is still in early development with many known issues, so it is not recommended for production use yet.

Uploaded by

Kassoum Kobré
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
133 views

PyScript - Run Python in Your HTML

PyScript is a new framework that allows users to write Python code directly in HTML using <py-script> tags. It enables Python code to run in the browser using technologies like WASM and modern web APIs. The framework provides access to the Python ecosystem and bi-directional communication between Python and JavaScript. However, PyScript is still in early development with many known issues, so it is not recommended for production use yet.

Uploaded by

Kassoum Kobré
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

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.

You might also like