Questions tagged [pydev]

PyDev is an Eclipse plugin for Python development.

PyDev - one of the best IDEs for Python development. Distributed as an Eclipse plugin.

Detailed information and download available at http://pydev.org/

Related Links:

2553 questions
167
votes
13 answers

Can Eclipse refresh resources automatically?

Eclipse (3.4.2 with PyDev) deals with out-of-sync resources (files that have been edited outside of the IDE) differently from other IDEs that I've used, where only resources with editors open are considered out-of-sync. In Eclipse, any resource can…
DNS
  • 37,249
  • 18
  • 95
  • 132
140
votes
13 answers

How do I fix PyDev "Undefined variable from import" errors?

I've got a Python project using PyDev in Eclipse, and PyDev keeps generating false errors for my code. I have a module settings that defines a settings object. I import that in module b and assign an attribute with: from settings import…
Chris B.
  • 85,731
  • 25
  • 98
  • 139
110
votes
12 answers

Unresolved Import Issues with PyDev and Eclipse

I am very new to PyDev and Python, though I have used Eclipse for Java plenty. I am trying to work through some of the Dive Into Python examples and this feels like an extremely trivial problem that's just becoming exceedingly annoying. I am using…
ely
  • 74,674
  • 34
  • 147
  • 228
106
votes
12 answers

Where does Anaconda Python install on Windows?

I installed Anaconda for Python 2.7 on my Windows machine and wanted to add the Anaconda interpreter to PyDev, but quick googling couldn't find the default place where Anaconda installed, and searching SO didn't turn up anything useful, so. Where…
Semicolons and Duct Tape
  • 2,927
  • 4
  • 20
  • 35
90
votes
6 answers

How to integrate pep8.py in Eclipse?

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…
David Arcos
  • 5,957
  • 5
  • 30
  • 39
87
votes
7 answers

Can you have 2 completely independent instances of Eclipse running at the same time?

I am currently using Eclipse for both Java and Python (with PyDev). I often find that I have one Java project open with lots of files, and then for some reason I have to switch to a Python project for a bit. I want to leave my Java project the way…
froadie
  • 79,995
  • 75
  • 166
  • 235
84
votes
9 answers

PyDev unittesting: How to capture text logged to a logging.Logger in "Captured Output"

I am using PyDev for development and unit-testing of my Python application. As for unit-testing, everything works great except the fact that no content is logged to the logging framework. The logger is not captured by the "Captured output" of…
gecco
  • 17,969
  • 11
  • 51
  • 68
82
votes
8 answers

How to organize a Python Project?

I'm new to Python and I'm starting a mini Project, but I have some doubts on how to organize the folders in the "Python Way". I'm using PyDev in my Development Environment, and when I create a new project a folder is created called src + src Now,…
André
  • 24,706
  • 43
  • 121
  • 178
79
votes
2 answers

pep8 warning on regex string in Python, Eclipse

Why is pep8 complaining on the next string in the code? import re re.compile("\d{3}") The warning I receive: ID:W1401 Anomalous backslash in string: '\d'. String constant might be missing an r prefix. Can you explain what is the meaning of the…
alandarev
  • 8,349
  • 2
  • 34
  • 43
72
votes
2 answers

stopping setup.py from installing as egg

How do I stop setup.py from installing a package as an egg? Or even better, how do I easy_install from installing a package as an egg? sudo python setup.py install The reason being that PyDev is rather picky about packages in egg format... The…
jldupont
  • 93,734
  • 56
  • 203
  • 318
72
votes
4 answers

Close pre-existing figures in matplotlib when running from eclipse

My question is simple: I have a python script that generates figures using matplotlib. Every time i run it it generates new windows with figures. How can I have the script close windows that were opened the previous time it ran? the analogous…
AnjoMan
  • 4,838
  • 4
  • 20
  • 28
62
votes
13 answers

Which Eclipse package should I download for PyDev?

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?
Markus Johansson
  • 3,733
  • 8
  • 36
  • 55
48
votes
3 answers

Break on exception in pydev

Is it possible to get the pydev debugger to break on exception?
Mat
  • 82,161
  • 34
  • 89
  • 109
43
votes
6 answers

Continuous unit testing with Pydev (Python and Eclipse)

Is there a way to integrate background unit tests with the Pydev Eclipse environment? My unit tests run well, but I would like to integrate them to run in the background based on source file changes (e.g. with nose) and to integrate the result back…
Tal Weiss
  • 8,889
  • 8
  • 54
  • 62
40
votes
2 answers

How to remove trailing whitespace in PyDev plugin for Eclipse

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?
vinodkone
  • 2,731
  • 4
  • 22
  • 21
1
2 3
99 100