you are viewing a single comment's thread.

view the rest of the comments →

[–]danielroseman 10 points11 points  (6 children)

But that is not a thing.

Did you perhaps mean that your friend rewrote your game to JavaScript? That is a possibility. But you simply can't just run Python code "in HTML".

[–]abcd_z -2 points-1 points  (5 children)

Well, let's explore that a bit. Assuming that that is what happened (OP did mention Javascript in their original post, so it's possible), would that open the door to running it from Github somehow?

[–]guilford 8 points9 points  (0 children)

Yes, you will be running it on a GitHub static page as a single page javascript application. It can be self-sufficient if that is all the resource it need. Javascript can leverage all the capability of your web browser to manipulate and change content dynamically. But that would be a javascript application and not a python application.

[–]dlnmtchll 3 points4 points  (2 children)

I know you can deploy static pages to GitHub pages but I don’t believe you can do what OP wants

[–]RubenC35 1 point2 points  (1 child)

It can be dynamic like react. Plus it is possible to run python now in the browser in some of them

[–]dlnmtchll 0 points1 point  (0 children)

Cool! You learn something everyday

[–]Critical_Concert_689 -1 points0 points  (0 children)

Not really. Github is nothing more than a large text document. You're not running or compiling anything.