I've searched hard, but not found exactly what I need. I want to run python3 programs in a terminal from sublime3 using CTRL+B and for the terminal to remain open after the code has run.
{
"cmd": ["start", "cmd", "/k", "usr/bin/python3", "$file"],
"selector": "source.python",
"shell": true,
"working_dir": "$file_dir"
}
gives start: missing job name
{
"cmd": ["gnome-terminal -e 'bash -c \"python3 -u $file;echo;echo Press ENTER to exit; read line\"'"],
"shell": true
}
works, but doesn't keep terminal open.
I've seen "/k" somewhere in this connection, but have no idea whare I would put it.
As usual, any help much appreciated.