The script package, most likely you want you to be able to test your code by running part or all of it at a time

You can install it by opening the settings view with Ctrl - , going to the Install panel and searching for the script. You can also install from the command line by doing:
apm install script
Technically, what you are asking is closer to the Terminal Plus package , as it opens a terminal panel from which you can load an interactive python environment by entering python .

source share