mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 02:37:41 -05:00
30 lines
726 B
HTML
30 lines
726 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="stylesheet" href="../../../dist/core.css">
|
|
<script type="module">
|
|
import '../../../dist/core.js';
|
|
|
|
addEventListener('py:progress', ({ detail }) => {
|
|
document.body.append(
|
|
detail,
|
|
document.createElement('br'),
|
|
);
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<py-config>
|
|
packages = ["matplotlib"]
|
|
</py-config>
|
|
<script type="py" worker>
|
|
from pyscript import document
|
|
from sys import version
|
|
document.body.append(document.createElement('hr'), version)
|
|
document.documentElement.classList.add('ok')
|
|
</script>
|
|
</body>
|
|
</html>
|