Atom editor for python : We will also show the downloading and installation processof Atom editor for python.
The atom is open source and free text also called as the source code editor for Linux, Microsoft windows.
It is desktop-based application used to build web technologies and have free licenses.
It is based on the electron also called as the atom-shell. It will enable using the node.js which is written in Coffee script.
It will support plug-in and embedded git control, developed by GitHub.
The command prompt is used for python programming and is minimalist editor for programming languages.
The basic way to create a python program is to create a file which is empty as a.py extension and point the file from the command line.
We can also use the IDLE application along python language to execute the code.
The atom will create a package and add the code.
Atom will offer 64 but package for the Ubuntu, we can install atom in 32 bit and 64 bit of Ubutu 16.4, 14.4 by keeping updated.
Atom will give hackable code and allow new and intermediate programmers to create text editor.
Due to open source text editor code altering is made easy.
The atom is a versatile and flexible text editor and used to compile, run files.
The installation of an atom editor is not as rocket science.
It is a very easy process and see the steps as follows,
1) Download editor:-
We need to download the editor as it is open source you can copy it for free.
2) Install atom editor:-
Installation of the atom editor is easy; we have to set-up the file and download.
After this we have to double click and run the installer.
Then the installer will launch atom editor and this installation may take time according to the configuration of machine.
Atom package:-
We have to install ide-python and atom-ide-ui from the install in the atom,
Apm install atom-ide-ui
Apm install ide-python
Run it on the python (.py) source file using the f5 or f6
Basically,
$atom myfile.py:-
This will open file in atom and see folders with contents on the left side bar.
def fname(arg):
Pass
Fname is highlighted because you can type name of function and replace fname.
You have to hit tab again and arg will be selected.
We have to write the x, y as the arguments and hit the tab again and pass, replace the code.
def product(x, y):
return x*y
Prerequisite:-
Code execution:-
The command prompt is used to run the programs.
The plug in is called platformio-ide-terminal used to execute the files, setup as navigate to file>setting then click on install and search for platformio-ide then click on install.
After the installation atom will see + icon in left corner of python editor.
Then you can view plug-in by clicking the plugin package tab and show details, use.
Splitting editor:-
If more than one files are opened inside the atom go to view>panes>split right to send current file to right half of window.
Types of the themes are syntax and UI themes.
The UI theme is used for changing style of button etc and syntax is used for determining the code which is colored and syntax highlighted.
Checking the installed theme by,
File>settings> then click on theme tan and show result.
Formatting:-
For changing the font we have to go at settings>click on Editor tab.
Then change the font to style by your choice.
The short cut keys are ctrl+shift+p and search for run then press ctrl+b.
Setting the python development enviourement in atom:-
1) Atom material:-
It use lot of colors and high contrast makes it easy to find and read code.
Syntax:-
http://atom.io/themes/atom-material
2) predawn:-
Some developers use and is very friendly.
Syntax:-
https://atom.io/themes/predawn
3) Jackhammer:-
It does not have much use of color as the atom material but ahs lot of contrast.
Syntax:-
https://atom.io/themes/jackhammer
4) File icon package:-
It allows seeing icon for each type and work on it.
Syntax:-
https://atom.io/packages/autocomplete-python
5) Minimap package:-
It’s the great tool for coding language and get hundreds of line and difficult to find the base of code.
It will provide the zoomed out view of code and keep visualization.
Syntax:-
https://atom.io/packages/minimap