Ask coding questions

← Back to all posts
Embedding onto website without displaying code
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
STEMCraftersIL
MarkMiller1
Shmouliiiiiik
VedPanse
NefliKserwgw
soulfir
hppcc2021
JithinSivaramSi
katkatkateryna
JackTheApple
Comments
hotnewtop
bumidev

add parameter lite=1&outputonly=1

JackTheApple

@bumidev This was SUPER helpful thanks a bunch!

BlaiseKern

@JackTheApple Where do I add that? sorry?

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. :)

BlaiseKern

@JackTheApple

Thank you so much!!!

JackTheApple

@BlaiseKern No problem!

MusfiqDehan

Hello brothers,

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

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.

top right corner? See that arrow?

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

AMR001

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

Santis2007

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

AMR001

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

BLA4KM4MBA

@Santis2007 use outputonly=1

MuhammadArif03

it works thank you
@AMR001

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

AMR001

@Geocube101 I think they meant embedding via HTML

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