eclipse

How do I import a pre-existing python project into Eclipse?

How do I import a pre-existing python project into Eclipse? Question: I am using eclipse for python. How do I import an existing project into eclipse in the current workspace. Thanks Asked By: Shan || Source Answers: New Project Dont use default Location Browse to existing project location … if its an existing eclipse project …

Total answers: 11

How to debug Celery/Django tasks running locally in Eclipse

How to debug Celery/Django tasks running locally in Eclipse Question: I need to debug Celery task from the Eclipse debugger. I’m using Eclipse, PyDev and Django. First, I open my project in Eclipse and put a breakpoint at the beginning of the task function. Then, I’m starting the Celery workers from Eclipse by Right Clicking …

Total answers: 5

Is there a quick way to decrease the indentation of multiple lines in Python?

Is there a quick way to decrease the indentation of multiple lines in Python? Question: I am a newbie to python programming. I find that decreasing the indentation of a block of codes in python is quite annoying. For example, given the following code snippet for i in range(density): if i < 5: x, y …

Total answers: 4

How to remove trailing whitespace in PyDev plugin for Eclipse

How to remove trailing whitespace in PyDev plugin for Eclipse Question: Ideally, eclipse should remove all trailing whitespace when I save the file. I know there is option for this in C++/Java plugins for eclipse, but I couldnt find one for PyDev. Is there one? If not, whats the easiest way to achieve this? Asked …

Total answers: 2

pydev doesn't find python library after installation

pydev doesn't find python library after installation Question: I’m using Django and PyDev/Eclipse. I just installed django-treebeard with setup.py install and it got installed in my site-packages directory C:Python26Libsite-packages. I can successfully import it in the python shell with import treebeard. However PyDev complains that it cannot resolve it when I try to import it. …

Total answers: 4

Where is the Google App Engine SDK path on OSX?

Where is the Google App Engine SDK path on OSX? Question: I need to know for creating a Pydev Google App Engine Project in Eclipse. Asked By: Curyous || Source Answers: /usr/local/google_appengine – that’s a symlink that links to the SDK. Answered By: Curyous /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine Answered By: meckdahl For MAC OS Instead of installing from …

Total answers: 3

Pythonic way to write a for loop that doesn't use the loop index

Pythonic way to write a for loop that doesn't use the loop index Question: This is to do with the following code, which uses a for loop to generate a series of random offsets for use elsewhere in the program. The index of this for loop is unused, and this is resulting in the ‘offending’ …

Total answers: 7

Break on exception in pydev

Break on exception in pydev Question: Is it possible to get the pydev debugger to break on exception? Asked By: Mat || Source Answers: On any exception? If my memory serves me right, in PyDev (in Eclipse) this is possible. EDIT: went through it again, checked pdb documentation, can’t find a way to set an …

Total answers: 3

How to integrate pep8.py in Eclipse?

How to integrate pep8.py in Eclipse? Question: A little background: PEP 8 is the Style Guide for Python Code. It contains the conventions all python programmers should follow. pep8.py is a (very useful) script that checks the code formating of a given python script, according to PEP 8. Eclipse is a great IDE. With the …

Total answers: 6

Which Eclipse package should I download for PyDev?

Which Eclipse package should I download for PyDev? Question: Which Eclipse package should I choose for Python development with PyDev? Nothing on the Eclipse homepage tells me what to choose, and the PyDev documentation assumes I already have Eclipse installed. Does it matter which Eclipse package I choose? Asked By: Markus Johansson || Source Answers: …

Total answers: 13