Writing a Python program can be done using any editor, even a text editor. If you are running Ubuntu Linux, you may want to edit your code using Eclipse. Eclipse is an Integrated Development Environment or IDE for building, deploying and managing software. It is a source code editor and provides trace and debugging facilities.
Install Eclipse
1. Install Eclipse and Sun's Java by running the following:
sudo apt-get install eclipse sun-java6-jdk
2. Make Sun's Java the default by running the following:
sudo update-java-alternatives -s java-6-sun
3. Edit the JVM configuration file:
sudo -b gedit /etc/jvm
4. and add the following to the top of the file:
/usr/lib/jvm/java-6-sun
5. If you have 1GB or more of memory, you may want to increase the heap size for better performance. The argument Xms refers to the minimum heap size and Xmx refers to the maximum heap size. Edit the Eclipse script file:
sudo -b gedit /usr/bin/eclipse
6. and change VMARGS="" to the following:
VMARGS="-Xms512m -Xmx512 -XX:MaxPermSize=128m"
PyDev
Install PyDev
ps: Install PyDev by running the following:
sudo eclipse
1. Run Eclipse and then go to Help | Software Updates | Find and Install...
2. In the Feature Updates window, select Search for new features to install and click Next.
3. In the Install window, select New Remote Site .
4. In the New Update Site window, specify the following:
Name: PyDev
URL: http://pydev.sourceforge.net/updates/
5. In the Search Results window, select both PyDev Extensions and click Next.
6. In the Feature License window, agree to the license agreement and click Next.
7. Configure the Python interpreter by going to Window | Preferences | Pydev | Interpreter - Python.
8. In the Python interpreters section, click New.
9. Locate your Python interpreter (e.g., /usr/bin/python).
10. When prompted, select your System PYTHONPATH. You can just leave the default checkboxes selected and click OK.
Install Eclipse
1. Install Eclipse and Sun's Java by running the following:
sudo apt-get install eclipse sun-java6-jdk
2. Make Sun's Java the default by running the following:
sudo update-java-alternatives -s java-6-sun
3. Edit the JVM configuration file:
sudo -b gedit /etc/jvm
4. and add the following to the top of the file:
/usr/lib/jvm/java-6-sun
5. If you have 1GB or more of memory, you may want to increase the heap size for better performance. The argument Xms refers to the minimum heap size and Xmx refers to the maximum heap size. Edit the Eclipse script file:
sudo -b gedit /usr/bin/eclipse
6. and change VMARGS="" to the following:
VMARGS="-Xms512m -Xmx512 -XX:MaxPermSize=128m"
PyDev
Install PyDev
ps: Install PyDev by running the following:
sudo eclipse
1. Run Eclipse and then go to Help | Software Updates | Find and Install...
2. In the Feature Updates window, select Search for new features to install and click Next.
3. In the Install window, select New Remote Site .
4. In the New Update Site window, specify the following:
Name: PyDev
URL: http://pydev.sourceforge.net/updates/
5. In the Search Results window, select both PyDev Extensions and click Next.
6. In the Feature License window, agree to the license agreement and click Next.
7. Configure the Python interpreter by going to Window | Preferences | Pydev | Interpreter - Python.
8. In the Python interpreters section, click New.
9. Locate your Python interpreter (e.g., /usr/bin/python).
10. When prompted, select your System PYTHONPATH. You can just leave the default checkboxes selected and click OK.