Setup python with eclipse

Post on 22-Jan-2015

280 views 4 download

Tags:

description

python, eclipse, Pydev

Transcript of Setup python with eclipse

1Dr. Hussien Sharaf

Setup Python into Eclipse

Dr. Hussien SharafFaculty of computers and Information

Cairo UniversitySpring 2014

2Dr. Hussien Sharaf

Pydev

• PyDev is a third-party plug-in for Eclipse. It is an Integrated Development Environment used for programming in Python supporting code refactoring, graphical debugging, code analysis and many other features. [http://en.wikipedia.org/wiki/PyDev]

3Dr. Hussien Sharaf

Installing pydev for Eclipse

• Go to HelpInstall New Software• In the textbox labeled “Work With” copy:• http://pydev.org/updates• Press “Add” button.• You can test if Pydev works correctly by checking if you can

create a new pyDev project:

4Dr. Hussien Sharaf

1. Go to Help Install New Software

5Dr. Hussien Sharaf

2. In the textbox labeled “Work With” copy:http://pydev.org/updatesthen Press “Add” button.

6Dr. Hussien Sharaf

3. You can test if Pydev works correctly by checking if you can create a new pyDev project

7Dr. Hussien Sharaf

3. You can test if Pydev works correctly (Cont.)

8Dr. Hussien Sharaf

4. Troubleshooting• If the “Pydev Project” node does not show

then you can do the install manually:• Go to :• http://sourceforge.net/projects/pydev/files/p

ydev/PyDev%202.8.2/• Download “PyDev 2.8.2.zip”• Copy the PyDev 2.8.2.zip to ….\eclipse\

dropins• Extract it and restart the eclipse.

9Dr. Hussien Sharaf

The next sections are optional for those who would like to read

10Dr. Hussien Sharaf

Automatic code reloading on the debugger

https://github.com/fabioz/Pydev/blob/development/plugins/org.python.pydev/pysrc/pydevd_reload.py

11Dr. Hussien Sharaf

GUI

http://docs.python.org/2.7/faq/gui.html

12Dr. Hussien Sharaf

Py2exe

http://docs.python.org/2.7/faq/gui.html

13Dr. Hussien Sharaf

Changing CPython’s Grammar

http://www.python.org/workshops/1998-11/proceedings/papers/aycock-little/aycock-little.html