Ask coding questions

← Back to all posts
Can you put a python file in a website you created using HTML?
[deleted]

For example:
I made a game using python, and I want to put it into a website that I made
using HTML, so is it possible to put the python game into the HTML website?

Answered by ch1ck3n (1629) [earned 5 cycles]
View Answer
Comments
hotnewtop
ch1ck3n (1629)

you can just point an iframe to a repl:

<iframe src="https://replit.com/@ch1ck3n/pop?embed=1"></iframe>

the ?embed=1 will make it fullscreen.

[deleted]

@ch1ck3n Thank you!

[deleted]

@ch1ck3n what if i don't want the repl to be full screen, would i just get rid of the ?embed=1?

ch1ck3n (1629)

@LeShuriken it would display a spotlight page (https://blog.replit.com/spotlight)

i mean, the frame itself won't be fullscreen on your website, it's only just the output

[deleted]

@ch1ck3n Can't I use CSS to make the repl bigger on the HTML website

[deleted]

Ok, thanks!

robowolf (435)

You could try a Brython(Python) IFrame https://brython.info/tests/console.html. Go to https://brython.info to learn more.