mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
25 lines
714 B
HTML
25 lines
714 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
|
<title>python</title>
|
|
<script type="module" src="../min.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="pyodide">
|
|
# define a "global" variable and print it
|
|
shared_env = 1
|
|
print(shared_env)
|
|
</script>
|
|
<script type="pyodide">
|
|
# just print the "global" variable from same env
|
|
print(shared_env)
|
|
</script>
|
|
<script type="pyodide" env="another-one">
|
|
# see the error
|
|
print(shared_env)
|
|
</script>
|
|
</body>
|
|
</html>
|