Install atom-shell-commands .
Look at the "Launch in a new window" page on the linked page.
Modify the configuration file as follows:
"atom-shell-commands": commands: [ { name: "run with python 3" command: "cmd" arguments: [ "/C" "start" "$your_folder$/launch_python3.cmd" "{FileName}" ] options: cwd: "{FileDir}" keymap: 'ctrl-3' } ]
Note. I saved the launch_python3.cmd file in my /.atom user folder, but you can save it in another place, this should not be a problem.
Cmd file contents:
@echo off REM used by atom-shell-commands to launch python 3 in a new window $your_python_path$\python.exe %1 pause exit
Now you can find "run with python 3" under "Packages"> "Atom Shell Commands".
Change the name and key combination as you like.
By clicking on the menu, a new command window appears: it also supports user input.
Worked for me.
source share