I recently switched to using Sublime Text as my Python IDE, and have since installed REPL. In order to re-use the same tab when running my code, I made a few edits repl_python_run
command in my SublimeREPL\config\Python\Main.sublime-menu
directory. (instructions here: Re-use tab ... SublimeREPL
This works well, and when I re-build a script (cmd + B
) the new output stays in the same tab; however, I would like to automatically close/restart the previous console after doing so. The reason is that I keep accumulating open python environments that must be closed manually.
Here is a picture of my taskbar after running the same code three times
Here is a picture of the tab where REPL is running.
As shown in the second picture, I can type in exit()
before rebuilding, but it would be nice if this could be done automatically. My thinking is that I could somehow set the previous console to close after rebuilding, or I could "re-run" the code in the same console via one simple command.