document.write(`
<!DOCTYPE html>
<html>
<head>
<title>PyScript Page</title>
<link rel="stylesheet" href="https://pyscript.net/releases/2025.8.1/core.css">
</head>
<body>
<div id="terminal-container"></div>
</body>
</html>
`);
// testing this...
const pyScriptLoader = document.createElement("script");
pyScriptLoader.type = "module";
pyScriptLoader.src = "https://pyscript.net/releases/2025.8.1/core.js";
document.head.appendChild(pyScriptLoader);
pyScriptLoader.onload = () => {
const pyScript = document.createElement("script");
pyScript.type = "py";
pyScript.setAttribute("terminal", "");
pyScript.setAttribute("worker", "");
pyScript.textContent = `
name = await input("What is your name? ")
print(f"Hello, {name}")
`;
document.body.appendChild(pyScript);
};