Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 3 Python Interactive Console? [duplicate]

I have been using a lot of sublime text 3 to write python. However, whenever a program I make needs user input, nothing happens. For example:

number = input("What is your favorite number?: ")
print(number)

This simply gives me the input prompt in the console, but anything that I type is ignored. The

print(number)

is never run. Is there a way to use an interactive console for sublime text 3? I have heard of something called REPL that will do the job in ST2, but I want to use an interactive console for python3 in ST3.

As of now, I just run programs that need input from terminal. Sometimes I'll use Pycharm, but I'm still getting used to pycharm.

like image 400
RandomCoder Avatar asked Mar 25 '16 01:03

RandomCoder


Video Answer


1 Answers

SublimeREPL works for python3. Their current builds are actually all tested against ST3.

https://github.com/wuub/SublimeREPL

like image 89
mattsl Avatar answered Oct 08 '22 23:10

mattsl