Skip to content

ONLINE PYGAME EXECUTION #99

Answered by pmp-p
cool-dev-guy asked this question in Q&A
Discussion options

You must be logged in to vote

To run arbitrary python code from javascript use Module.PyRun_SimpleString(code:str). ( coming from https://docs.python.org/3/c-api/veryhigh.html )

To run arbitrary python code from html use pygame-script, various samples here https://github.com/pygame-web/showroom/tree/main/pygame-scripts

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cool-dev-guy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants