Is there an equivalent of slime for python?
For example, if I position the cursor on foo() and do M-. (jump to definition) I would like to see the source definition of
The following will index your current project
find . -type f -name '*.py' | xargs etags
But if you want to index your imported libs. You first activate your virtualenv. Then use which
python to detect where your libs are and then pipe them to etags.
workon my-project # if using virtualenvwrappwer
source bin/activate # if using virtualenv
find ${$(which python)/\/bin\/python/} -type f -name '*.py' | xargs etags