Running Python from Atom

In Sublime, we have a simple and convenient way to run Python or almost any language using ⌘ + b (or ctrl + b )

If the code will run in a small window under the source code and can be easily closed using the evacuation key when it is no longer needed.

Is there a way to reproduce this functionally using the Github atom editor?

+70
python atom-editor
Aug 30 '14 at 18:23
source share
3 answers

The script package does exactly what you are looking for: https://atom.io/packages/script

The package documentation also contains key mappings that you can easily customize.

+78
Aug 30 '14 at 20:10
source share

Download and install the package here: https://atom.io/packages/script

To execute a python command in atom, use the following shortcuts:

For Windows / Linux, this is SHIFT + Ctrl + B OR Ctrl + SHIFT + B

If you are on a Mac, press ⌘ + I

+10
Jan 19 '18 at 22:59
source share

To run a Python file on a Mac.

  1. Open the settings in atom ide. To open the settings, click "command +". '(⌘ +,)
  2. Click on the installation in the settings to install the packages.

  3. Find the "script" package and click "Install"

  4. .Now open the python file (with the extension .py) that you want to run and press "control + r" (^ + r)

+2
Sep 09 '19 at 17:36
source share



All Articles