mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 10:47:35 -05:00
* Fix #2114 - Cleanup the test folder + automation * Merged both test and tests into a single folder
28 lines
770 B
HTML
28 lines
770 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" src="../../dist/core.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="py" async>
|
|
from pyscript import py_import, js_import, window
|
|
|
|
window.console.time("first")
|
|
matplotlib, regex, = await py_import("matplotlib", "regex")
|
|
window.console.timeEnd("first")
|
|
|
|
window.console.time("second")
|
|
matplotlib, regex, = await py_import("matplotlib", "regex")
|
|
window.console.timeEnd("second")
|
|
|
|
print(matplotlib, regex)
|
|
|
|
escaper, = await js_import("https://esm.run/html-escaper")
|
|
window.console.log(escaper)
|
|
</script>
|
|
</body>
|
|
</html>
|