This chapter teach us how to setup your python development environment varied platforms.
My os is linux, python 2.7 and gedit are pre-installed and configured, so all i should do is just setup the preferences of gedit.
Python use whitespace indentation to delimit blocks, hence the first preference is whitespace, the following setup is stolen fromthe book:
- Open Preferences select theEditor tab.
- Change Tab width: to 4.
- Select (make sure a check mark is in) Insertspaces instead of tabs.
- Turn on "Automatic indentation" as well.
Next, testing python and gedit.
Open the terminal, after type python, i get the python console, i can code and run it directly here.
Open another terminal, after type gedit, it will open the gui gedit, i can code directly here.