Ask coding questions

← Back to all posts
Embed Python in HTML
btfuss (178)

Yeah yeah yeah I know this question is everywhere on the internet but can you use a replit program and embed it into a site?

Answered by ruiwenge2 (1136) [earned 5 cycles]
View Answer
ruiwenge2 (1136)

add ?embed=1&tab=console after the repl url

ch1ck3n (2365)

just put ?lite=1&outputonly=1 after the URL of the repl.
for example:

btfuss (178)

@ch1ck3n It still includes all the code and shell and stuff at the top tho

ruiwenge2 (1136)

you mean use python in html?

btfuss (178)

@ruiwenge2 No. You know the python interpreter replit provides? Yeah I'm only trying to get the output of that in html. See, replit provides this but in the embed it also has a shell and run button and a ton of other stuff which is unnecessary. All i need is the python program displayed itself

xxpertHacker (931)

@btfuss Wait, like, just the source code?

Like a code block, in HTML?

btfuss (178)

@xxpertHacker At the bottom of this page, you see the terminal? Something like that.

xxpertHacker (931)

@btfuss This used to be possible via {username}.{replname} URLs. They were removed some time ago.

xxpertHacker (931)

@btfuss Never linked you to it, but here's some info on them: