Files
pyscript/newdocs/docs/features.md
2023-09-06 22:03:07 -05:00

1.2 KiB
Raw Permalink Blame History

What is PyScript - Features

PyScript is a software platform that combines the power of the web with the power and simplicity of the most popular programming language in the world to provide an ecosystem that let users create and distribute applications in seconds, while having fun.

How does it work?

The PyScript library provides HTML tags for embedding and executing Python code in your browser. PyScript is built using Pyodide, the WebAssembly port of CPython, which is compiled using Emscripten.

PyScript turns the browser into a code deployment tool that anyone can learn to use.

Example In this example, we are using the HTML tag to generate a Matplotlib figure and display it as an image. Click Preview to see the rendered HTML.

To try it in your browser, copy the code below into an online HTML editor like W3Schools Tryit Editor, which allows you to modify, run, and even save your code. Watch the video below to see it in action!

Features

Run Python code in the browser

In the main thread

In a web worker

Environment Setup

Install Python Packages

Download files and assets

Error reporting

Pythonic Web APIs

Access to Javascript