Closing WordsĪs you can see, it was pretty straightforward - we just need to downgrade ide-python and install atom-ide-ui to set it all up, but I’ve spent a lot of time figuring out how it works and why it’s not.
You can also install the Atom-File-Icons plugin to have file icons similar to the Visual Studio Code instead of boring grey ones. After it’s downloaded and installed, you can change the style of docstrings in the plugin’s settings (File->Settings->Packages->docblock-python). If you want to install it, go to File->Settings->Install and search for docblock-python. You can pick one of four styles (NumPy, Google, Sphinx, Epytext) and then generate docstrings simply using hotkeys (CTRL+ALT+D on Windows). I use a less-known docblock-python plugin because it provides me a more convenient way to create a class/function docstrings with printed arguments, types, and exceptions raised. I have almost every checkbox enabled, except PyDocStyle. Now scroll down and enable any functionality you want.
Also specify pyls, pycodestyle, and flake8 executable paths if they differ from the default on your system. ( C:\Users\…\Python38\python.exe instead of simply “python” for instance). Here in the plugin’s settings, you need to provide the absolute path to the python executable you used to install python-language-server in the previous step. Now restart your Atom and go to File->Settings->Packages->ide-python.
If you have a different python version (python3 on Unix, for example) or wanna use a virtual environment, just specify a full path to the necessary executable instead of python in the command below: python -m pip install python-language-server
Now let’s install Python libraries that ide-python uses. Let’s install it manually, specifying the version: apm install command above may take some time to execute because of node dependencies that need to be installed. But we can’t use Atom GUI because, since version 1.9.2, the plugin breaks backward compatibilities and can’t use it with atom-ide-ui anymore. We need to install Atom’s plugin called ide-python developed by atom-community. If you’re on Windows, press Win+R, type cmd, and hit Enter. Type its name in a search bar and click the Install button. The first plugin we need to install is atom-ide-ui , created by Facebook. Open Settings (CTRL +, on Windows) File->SettingsĤ. I found the Diagnostics Tool to be much more helpful because it has autoformatting built-in and provides a convenient linter’s error output.ĭownload Atom from the Oficial Page, and follow the instructions.
It took so much time for me to set up Atom for the first time because I could choose the Linter tool or Diagnostics Tool but not both of them. I’ve had Atom instance set up on Windows 10, but I think these steps should work in any OS. Hyperclick (when you can open a source code of function, class, or module by clicking on its name)Īfter spending about 10 hours trying to figure out the best way, I ready to show you the shortest road. Go-to-definition and Signature Help features You need language-related features such as: You’ve just installed Atom, and now you want to write Python code convenient way. (This article is also available on Medium)