atom tutorial - Running a "Hello, World!" program in Python using Atom from scratch - atom io , atom ide , atom github , atom editor



  • Atom is versatile and flexible text editor and has hundreds of community-made, open-source packages that can compile and run source files, for many languages. This guide will show how easy it is to code Python with the Atom editor.
  • This guide assumes you do not have Python nor Atom installed in your system.

Step 1: Installing Python

Python can be installed from the either the official website, or if you're using Linux, through package managers (however Python usually comes pre-installed anyways). If you're a Windows user, do not forget to set python.exe to your ,%PATH%.

Step 2: Installing Atom

  • You can install the Atom editor from the official website or through package managers.

Step 3: Configuring Atom

  • In order to compile and run programs, the Atom community provides packages to fill that need. For this example, we will be using script to run our program.
  • Go to File > Settings > Install.
  • Type script in the search bar and install it. When it is installed, it should be listed in "Packages" in the Settings bar. It should be noted that script is not capable of user input.
  • If you're using MacOS or Linux, you can use the apm package manager to install packages.

Step 4: Programming and executing

  • Pick a directory where you would like to store your PY source file.
    1. Make sure you can see the Tree View pane; if you cannot see this pane, you can toggle it by going to View > Toggle Tree View.
    2. Go to File > Add Project Folder and select a directory which will be set as your root directory for a project.
    3. Right-click the folder and click New File, then enter in hello-world.py and type in the following code:
    4. Press CTRL+SHIFT+B to run the script. Alternatively, you can go to View > Toggle Command Palette and enter Script: Run.

The script should returnn

Hello, World!
[Finished in 0.125s] 

Related Searches to Running a "Hello, World!" program in Python using Atom from scratch