Skip to content
Sign upLog in
← Back to Community

Embedding onto website without displaying code

Profile icon
YuvMalik

Hi there, I was just wondering whether it was possible to embed a Repl onto a website or anywhere without displaying the code but, only the end result ?

Voters
Profile icon
xenophiliamee
Profile icon
ShayaanRafiq
Profile icon
laugh-outout
Profile icon
AccuratePL
Profile icon
STEMCraftersIL
Profile icon
MarkMiller1
Profile icon
Shmouliiiiiik
Profile icon
VedPanse
Profile icon
NefliKserwgw
Profile icon
soulfir
Comments
hotnewtop
Profile icon
bumidev

add parameter lite=1&outputonly=1

Profile icon
JackTheApple

@bumidev
This was SUPER helpful thanks a bunch!

Profile icon
BlaiseKern

@JackTheApple
Where do I add that? sorry?

Profile icon
JackTheApple

@BlaiseKern
You go to share, then there is a copy embed code button at the bottom of that menu. Click that button to copy it, then paste it into a text editor or something of the sort so that you can edit it. The code will have say iframe and then it will say height and width. Ignore that part of the tag. After that, it will say src= and have your username and the name of your project. At the end of that there will be this line: ?lite="true". Replace that with ?lite=1&outputonly=1(the code above.) pasting this into a website that makes websites(like wix or google sites), or into an HTML project will make you python project run in there. :)

Profile icon
BlaiseKern

@JackTheApple

Thank you so much!!!

Profile icon
JackTheApple

@BlaiseKern
No problem!

Profile icon
MusfiqDehan

Hello brothers,

Why there is no such link in my repl?
Is repl.it stop providing link for python?

image

Profile icon
razorshnegax

RIP man. I can tell you spent so much time on this cool game, and yet there's still an error in your code. As for your question, use the Iframe to embed the REPL.RUN version of your repl. You can access the repl.run from the top corner of your repl.
image

top right corner? See that arrow?

11/24/20 EDIT: Repl.run is gone now, not sure how you're gonna do this

Profile icon
AMR001

In the URL you replace lite=true with lite=true&outputonly=true

Profile icon
Santis2007

@AMR001
thanks for the help but is their a way to make it not start immediatly

Profile icon
AMR001

@Santis2007
You could replace the URL with the open in a new page URL for the code

Profile icon
BLA4KM4MBA

@Santis2007
use outputonly=1

Profile icon
MuhammadArif03

it works thank you


@AMR001

Profile icon
Geocube101

Next to the URL (in the console's top bar) is a square with a diagonal arrow. Clicking it will open a new tab with ONLY the console output of your repl

Profile icon
AMR001

@Geocube101
I think they meant embedding via HTML

Profile icon
Geocube101

@AMR001
Ok thanks

Well you might be able to use the output window url to place inside an <iframe> element but I haven't tried it