PyScript - A Game Changer For Your Browser

Execute Python right in your Browser!

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
<!--Load PyScript, Pyodide, Micropip and Python packages-->
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
<py-env>
  - pandas
</py-env>

<!-- Write your Python code! -->
<py-script>
import pandas as pd 
from pyodide.http import open_url

df = pd.read_csv(open_url("/downloads/iris.csv"))
df
</py-script>