Skip to content
Sign upLog in
← Back to Community

How to change default language for custom REPL?

Profile icon
jha929

This screenshot below shows that my project's default language is bash but I want to make it python. Is there a way to do that?

Screen Shot 2020-10-01 at 15.05.39

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Profile icon
NadineBreches
Profile icon
Jimmy1008
Profile icon
jha929
Comments
hotnewtop
Profile icon
Coder100

This isn't possible yet, you can help speed up the development of this feature by report it to feedback. Thanks!

Another way is to just create a python repl smh
then, in your console (hit ctrl + shift + s):

git clone [github_url].git
Profile icon
jha929

@Coder100
Ah, I didn't know I can bring the console up.

But this way, I cannot import my python package from the rootdir?

For example, I would have main.py and pypackage (example git repo, let say). What I want to import is package which is placed right under the repodir, pypackage.

Is there a way to do that?

Profile icon
Coder100

@jha929
are they in the same directory?

Profile icon
jha929

@Coder100
git clone [github_url].git cloned pypackage under the root so I had to move package out from the pypackage. I got this working now. Thanks for your help!

Profile icon
Coder100

np :D

@jha929

Profile icon
Bookie0

Hi there!

First, go to the repl.it cli here

Then click account:
Screen Shot 2020-10-01 at 8.29.36 AM

Next click languages:

Screen Shot 2020-10-01 at 8.30.10 AM

Next check the boxes where your default languages are:
Screen Shot 2020-10-01 at 8.30.43 AM

Now when you go back to the home page, there should be those languages. If not, try again. Sometimes you have to do this process several times so that repl.it records it, and reload page/delete tab.

So yea lemme know if I was unclear! ;)

Profile icon
Coder100

wait but that's for your favorite languages lol not a specific repl's languages xD

@Bookie0

Profile icon
Bookie0

hum well yea it is for favorite language, but on the home screen then it should put those languages.

Screen Shot 2020-10-01 at 9.06.41 AM

right?

or do you mean "specific repl's languages" by changing the language on a repl?

@Coder100

Profile icon
Coder100

oh, didn't he mean for a specific repl

@Bookie0

Profile icon
Bookie0

ah ok then whoops i thought with the image in the descrip he meant shortcuts for fav langs lol

@Coder100

Profile icon
Coder100

lol

@Bookie0

Profile icon
Bookie0

xD

@Coder100

Profile icon
jha929

@Bookie0
Hey, thanks for the detailed reply.

Yeh, I meant to set a language for a specific repl.

Anyway, I set my favourite language to python as well :) It was also a thing I was looking for.

Profile icon
Bookie0

Oh ok then, sorry I couldn't help further but I'm glad you found some part of it useful! ;)

@jha929

Profile icon
FrederickSiebe1

Don't think you can change an existing repl type but all you have to do is create a new repl of type HTML, CSS, JS , and then click 'Import from Github'. Now when you go back to https://writinguniverse.com/free-essay-examples/law/ the home page, there should be those languages. If not, try again. Sometimes you have to do this process several times so that repl.it records it, and reload page/delete tab.

Profile icon
retronbv

A .replit file.
Contents of .replit:
language=“python 3” (Newline) run=“python3 main.py”