mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-23 04:03:00 -05:00
* kill unwrapped_remote (#1490) * kill unwrapped_remote * linting * don't use callKwargs for python plugins * fix tests and improve types * Bringing PyScript.next PoC to the main project * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Madhur Tandon <20173739+madhur-tandon@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
25 lines
699 B
HTML
25 lines
699 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="py">
|
|
# define a "global" variable and print it
|
|
shared_env = 1
|
|
print(shared_env)
|
|
</script>
|
|
<script type="py">
|
|
# just print the "global" variable from same env
|
|
print(shared_env)
|
|
</script>
|
|
<script type="py" env="another-one">
|
|
# see the error
|
|
print(shared_env)
|
|
</script>
|
|
</body>
|
|
</html>
|