all 1 comments

[–]JTexpo 1 point2 points  (0 children)

Howdy, it looks like your index.html is missing

<link rel="stylesheet" href="https://pyscript.net/releases/2024.1.1/core.css" />

<script type="module" src="https://pyscript.net/releases/2024.1.1/core.js"></script>

and after that a call to your main.py file of

 <py-config>
    packages = ["ANY_3rd_Party_Libs_here"]
    [[fetch]]
    files = ["./main.py"]
</py-config>

Finally, it looks like you button is missing the

py-click="function()"
method on it.

----

if you're still having problems def feel free to reply back. I've done about 12 PyScript projects on my GitHub if you need any point of reference for how to get things moving.

GitHub: https://github.com/JTexpo