mirror of
https://github.com/pyscript/pyscript.git
synced 2026-03-14 04:00:02 -04:00
@pyscript/core deprecation (#1607)
This commit is contained in:
committed by
GitHub
parent
f0e69cbc36
commit
26e7a54f1f
@@ -1,52 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||||
<title>python</title>
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
<script type="importmap">
|
||||
{
|
||||
"imports": {
|
||||
"basic-devtools": "../node_modules/basic-devtools/esm/index.js",
|
||||
"coincident/window": "../node_modules/coincident/window.js",
|
||||
"@ungap/with-resolvers": "../node_modules/@ungap/with-resolvers/index.js",
|
||||
"@ungap/structured-clone/json": "../node_modules/@ungap/structured-clone/esm/json.js"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script type="module" src="../esm/index.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="pyodide">
|
||||
def print_version():
|
||||
import sys
|
||||
print(sys.version)
|
||||
print("bad.", file=sys.stderr)
|
||||
</script>
|
||||
<button py-click="print_version()">python version</button>
|
||||
|
||||
<script type="micropython">
|
||||
def print_version():
|
||||
import sys
|
||||
print(sys.version)
|
||||
print("bad.", file=sys.stderr)
|
||||
</script>
|
||||
<button micropython-click="print_version()">micropython version</button>
|
||||
|
||||
<script type="wasmoon">
|
||||
function print_version()
|
||||
print(_VERSION)
|
||||
printErr(123)
|
||||
end
|
||||
</script>
|
||||
<button lua-click="print_version()">lua version</button>
|
||||
|
||||
<script type="ruby-wasm-wasi">
|
||||
def print_version()
|
||||
print "ruby #{ RUBY_VERSION }p#{ RUBY_PATCHLEVEL }"
|
||||
end
|
||||
</script>
|
||||
<button ruby-wasm-wasi-click="print_version()">ruby version</button>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user