Top Banner
1 Setup Python into Eclipse Dr. Hussien Sharaf Faculty of computers and Information Cairo University Spring 2014 Dr. Hussien Sharaf
13
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Setup python with eclipse

1Dr. Hussien Sharaf

Setup Python into Eclipse

Dr. Hussien SharafFaculty of computers and Information

Cairo UniversitySpring 2014

Page 2: Setup python with eclipse

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]

Page 3: Setup python with eclipse

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:

Page 4: Setup python with eclipse

4Dr. Hussien Sharaf

1. Go to Help Install New Software

Page 5: Setup python with eclipse

5Dr. Hussien Sharaf

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

Page 6: Setup python with eclipse

6Dr. Hussien Sharaf

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

Page 7: Setup python with eclipse

7Dr. Hussien Sharaf

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

Page 8: Setup python with eclipse

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.

Page 9: Setup python with eclipse

9Dr. Hussien Sharaf

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

Page 10: Setup python with eclipse

10Dr. Hussien Sharaf

Automatic code reloading on the debugger

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

Page 11: Setup python with eclipse

11Dr. Hussien Sharaf

GUI

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

Page 12: Setup python with eclipse

12Dr. Hussien Sharaf

Py2exe

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

Page 13: Setup python with eclipse

13Dr. Hussien Sharaf

Changing CPython’s Grammar

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