Jesús Martínez Blanco
Principal Data Scientist
@
check pyscript.net
Binary instruction format for the web
(we can run compiled code in the browser)
PROS
CONS
Put this in the <head>
<link rel="stylesheet" href="https://pyscript.net/releases/2025.7.2/core.css" />
<script type="module" src="https://pyscript.net/releases/2025.7.2/core.js"></script>
<script type="py" src="py/main.py" config="py/pyscript.toml"></script>
Write a .toml file listing the python libraries used in your script (+ some info)
Make your .py file part of the app
name = "My awesome pyscript app"
description = "Just a simple demo app"
packages = ["pandas", "plotly"]
Path to your Python script
Path to your
toml script
Here is an example of Python script as contents of main.py
from pyscript import display
import sys
display(sys.version)