Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
2

Hide code but allow the repl to be executed

GABELACANLALE
GABELACANLALE

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

2 years ago

Voters

Comments

TopNew
1
LeoXu2
LeoXu2

can u just open the link?

2 years ago
2
GABELACANLALE
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.

2 years ago
1
Coder100
Coder100

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

Happy embedding!

2 years ago
1
RYANTADIPARTHI
RYANTADIPARTHI

explain more please.

2 years ago
1
GABELACANLALE
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)

2 years ago
1
RYANTADIPARTHI
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

2 years ago
1
SixBeeps
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.

2 years ago
1
Subroutine
Subroutine

ok, see the circled thing? drag it left:

image

2 years ago
1
btfuss
btfuss

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

2 years ago
Load more