How to run basic python programs in the terminal using Sublime Text 3 in Kali Linux

Published: 02 October 2015
on channel: RuMAN S
22,536
116

Skip to 2:29 to directly see the way to create the build system

Link to Sublime text: http://www.sublimetext.com/3
(Download the 32/64 bit version, depending on your OS)

Here's the Python build system:

{
"cmd": ["gnome-terminal -e 'bash -c \"python3 -u $file;echo;echo Press ENTER to exit; read line\"'"],
"shell": true
}

NOTE: THIS WILL ALSO WORK IN OTHER LINUX OSes BASED ON DEBIAN (Ubuntu, Linux Mint etc), IF IT HAS A GNOME TERMINAL.
For other OSes "gnome-terminal" must be replaced with the terminal which your OS has.(xubuntu - "xfce4-terminal", kubuntu - "konsole" etc)
PS: Many linux distros also come with xterm. So replace "gnome-terminal" with "xterm"