Skip to content
Sign upLog in
← Back to Community

Hide code but allow the repl to be executed

Profile icon
GABELACANLALE

Well, I mean the title is pretty much self explanatory of what im talking about.

Voters
Profile icon
PriyanshiJain3
Profile icon
GABELACANLALE
Comments
hotnewtop
Profile icon
LeoXu2

can u just open the link?

Profile icon
GABELACANLALE

@LeoXu2
Im not using js right now. Im using python. Im also not using a web based application nor do I have the intention of that. I want code to be hidden when I share a project to repl users.

Profile icon
Coder100

Easy! Read this: https://docs.repl.it/repls/embed

Happy embedding!

Profile icon
RYANTADIPARTHI

explain more please.

Profile icon
GABELACANLALE

@RYANTADIPARTHI
When a post is shared to replit, hide only the code from the public, but allow people to execute the code. (I'm not using the web, I am just using normal Python 3.8)

Profile icon
RYANTADIPARTHI

@GABELACANLALE
oh. in a way, i guess that it possible. You could copy and paste the link of your ouput in the share post. And just put a blank repl in the choose a repl.

that would work

Profile icon
SixBeeps

You can add ?outputonly=true to the end of any Repl URL to show just the output, though be warned that anyone could just remove that part to expose the code. If you have any secrets, it's best to hide them behind something.

Profile icon
williham

ok, see the circled thing? drag it left:

image

Profile icon
btfuss

Well, delete all the prints.
Or, import threading in python, then make a thread which has a:
while True:
os.system('clear')