Ask coding questions

← Back to all posts
How to change default language for custom REPL?
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?

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
NadineBreches
Jimmy1008
jha929
Comments
hotnewtop
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):

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?

Coder100

@jha929 are they in the same directory?

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!

Coder100

np :D @jha929

Bookie0

Hi there!

First, go to the repl.it cli here

Then click account:

Next click languages:

Next check the boxes where your default languages are:

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! ;)

Coder100

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

Bookie0

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

right?

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

@Coder100

Coder100

oh, didn't he mean for a specific repl @Bookie0

Bookie0

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

Coder100
Bookie0
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.

Bookie0

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

retronbv

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