Skip to content
Sign upLog in
← Back to Community

Embed Python in HTML

Profile icon
btfuss

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 [earned 5 cycles]
View Answer
Voters
Profile icon
slakkkj
Profile icon
btfuss
Comments
hotnewtop
Profile icon
ruiwenge2

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

Profile icon
ch1ck3n

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

https://replit.com/@ch1ck3n/dogenet-v2?lite=1&outputonly=1

Profile icon
btfuss

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

Profile icon
ruiwenge2

you mean use python in html?

Profile icon
btfuss

@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

Profile icon
xxpertHacker

@btfuss
Wait, like, just the source code?

Like a code block, in HTML?

Profile icon
btfuss

@xxpertHacker
https://replit.com/site/careers At the bottom of this page, you see the terminal? Something like that.

Profile icon
xxpertHacker

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

Profile icon
btfuss
Profile icon
xxpertHacker

@btfuss
Never linked you to it, but here's some info on them: https://blog.replit.com/anon