DEV Community

Cover image for Python IN Browser
Anandhu Prakash
Anandhu Prakash

Posted on

Python IN Browser

What is PyScript?

Python in the browser! 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.

Image description

Output:

Image description

Installation of PyScript:

Just Kidding! There is no installation for pyscript. Just add these commands to your html page.


<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>

<py-script>
    print("Hello World!!!")#Your Python Code
</py-script>

Enter fullscreen mode Exit fullscreen mode

Note Py-Script is still in Alpha Version.

Top comments (0)