Here's a demo of some of the functionality that Atom has for Python development, by a long-time Atom and vi(m) user and Python newbie. This demo mostly uses Atom's core editor functionality (with some packages), not the full-blown Atom IDE which requires Python language server.
Atom ships with a few core packages (including git and GitHub integration) and there are thousands of contributed ones in the Atom package repository. Atom configuration (for the core editor and for packages) can be done from the settings screen or directly using
.cson (CoffeeScript Object Notation) files.
Assuming stock Atom is already installed and XKCD codebase already checked out.
Commands are run from the main or contextual menus, from the command palette (
ctrl+shift+p), or from other UI elements.
Install python packages
language-python is a default package. We may also want the following:
- atom-python-test -- requires
- linter-python -- requires
- python-tools -- useful for refactoring
- script-runner -- run scripts in python and various other scripting languages, output to Atom console
Open the codebase in the IDE (configure virtualenv if needed)
- New window
- Add project folder
Open a file (say main.py), show syntax highlighting
Show code autocomplete
Refactoring - rename a variable
[python-tools] Show Usages.
Jump to function/method definition
[python-tools] Goto Definition.
Show git blame for a file
git-blame package will show blame in the left column. Authors can be distinguished by colour of margin. Clicking in the blame column will open the commit in GitHub, Bitbucket, GitLab, or a custom remote, if available.
Search in codebase
Find/Replace in Project.
Run the code
Run the tests
- Run test under cursor
- Run all tests on page
- Run project tests