How to setup ATOM as your Python development environment
Hi, PyCharm is an awesome IDE for Python Development and I use it a lot. But sometimes it gets heavier that I want to kill myself. Then I’ve found ATOM. ATOM is a coding editor created by the GitHub team to be simple, powerful and highly customizable.
There are some features that I really like in ATOM like:
- Built-in package manager
- Multiple panes
- File system browser
If you want to give it a try and use ATOM as your Python development environment, follow me in this post and I’ll show you how I configure my ATOM settings to make easier for us Python developers to have a very simple and powerful development environment.
I’m using a Macbook so I’m assuming you are using one too. Hit “Command + ,” and this will bring the Settings tab. If you use another OS change the “Command” key to “Ctrl” key.
In Editor Settings, check the “Back Up Before Saving” box. This will avoid corrupt files in case of failure during file save process.
Go below and check the “Show Indent Guide” and “Show Invisibles” boxes. This options will help you navigate through your code showing the indentation. This is very helpful specially when you are working with Web Development and HTML files.
On the left Menu, click on Install option. We are going to install the following packages:
The installation is pretty straightforward, you search for the package and after you’ve found you click on Install. It’s simple as that.
After that your ATOM will be ready to rock some Python code. But we are not finished yet. If you try to open a Python project using ATOM you will notice that things are not working well.
This happens because ATOM uses pep8, flake8 and jedi packages in its plugins. That’s why we need to install those Python packages.
You already created your Python Virtual Environment following the best practices right? If so we are going to install the following Python packages:
Activate your Virtualenv:
In my case venv is the name of my Virtualenv environment.
More on Virtualenv’s here: http://docs.python-guide.org/en/latest/dev/virtualenvs/
Now proceed with the installation of the Python packages:
pip install pep8 flake 8 jedi
And we’re done. Very simple and you will have your ATOM editor ready to use as your Python Development environment.
See ya !!!
How to setup ATOM as your Python development environment was published on February 04, 2016.
Originally published at andrealmar.com.