Python-mode is a vim plugin that helps you to create python code very quickly by utilizing libraries including pylint, rope, pydoc, pyflakes, pep8, and mccabe for features like static analysis, refactoring, folding, completion, documentation, and more. (from GH)
Questions tagged [python-mode]
150 questions
2
votes
0 answers
Emacs Python Mode Not Showing Ending Block
In Emacs 24.2, in python-mode when hitting tab to indent, it prints out at the bottom which block this level closes.
In Emacs 24.3 (which I believe updates python-mode to use python.el), this does not happen anymore. It usually prints something…

darksky
- 20,411
- 61
- 165
- 254
2
votes
1 answer
auto scrolling output in vim python-mode
I'm using vim with python mode, and normally the script output is put in the Quickfix window at the bottom of the screen. Unfortunately this window doesn't get scrolled automatically, it always shows the top of the script. It would be ideally if it…

yemu
- 26,249
- 10
- 32
- 29
2
votes
3 answers
python-mode indentation not working upon hitting enter
I just installed python-mode from ELPA and when I hit Enter the cursor goes straight to the beginning of the next line. For instance for the following code:
def hello_world():
print "hello world!"
for i in range(3):
print "hello…

Mike Vella
- 10,187
- 14
- 59
- 86
2
votes
4 answers
electric-indent-mode breaks my Python code
I have this code on Emacs with python-mode enabled:
def func(a):
if a:
return True
return False
When I move the cursor between return False and def func( the code is automatically indented, breaking it:
def func(a):
if a:
…

shackra
- 277
- 3
- 16
- 56
2
votes
1 answer
How can I force emacs to use the bottom window rather than the bottom one when invoking an ipython compilation in a 3 window setup
So I have my emacs window setup with a 3 frame setup as such :
; +-----------------------+
; | | |
; | | |
; +-----------------------+
; | |
; | …

octi
- 1,470
- 1
- 17
- 28
2
votes
2 answers
python: displaying help documents
I am running python-mode with iPython in emacs. Especially with numpy packages, when I type
[1]: help(numpy.array)
or anything similar in the interactive buffer, pages and pages of documentation are printed in the buffer, making it difficult to…

hatmatrix
- 42,883
- 45
- 137
- 231
2
votes
2 answers
Emacs python-mode.el comments start a new line
I am using python-mode.el in Emacs to edit some Python code and it has the most annoying feature where it auto-indents a comment and then starts a new line. For example, if I have this:
def x():
y = 1

cacti
- 475
- 3
- 15
1
vote
3 answers
switch buffer settings using python-mode in emacs?
I have been using emacs for a while but not so familiar with lisp programming. Its been just couple of days I started coding Python on emacs. I found python-mode to be quite useful and I want to explore it further. I found a few emacs lips functions…

Alok
- 3,160
- 3
- 28
- 47
1
vote
1 answer
Python Code checkers wrapper in emacs does not properly feed the results to flymake on win32
So i'm using this wrapper suggested on the emacs python wiki (found here) around pep8, pyflakes and pylint which works on the command line (after the trouble of getting it setup on windows according to " Running python scripts with subprocess in…

octi
- 1,470
- 1
- 17
- 28
1
vote
2 answers
Error message: Symbol's value as variable is void: erg when using ipython with python-mode
In my case, I got the error upon entering the first line into an ipython buffer. This appears to be a known bug in python-mode 6.0.4.

Johnny Brown
- 1,000
- 11
- 18
1
vote
2 answers
py-python-command ignored
I'm using python-mode 6.0.1 on OS X, emacs 23.3 (http://emacsformacosx.com/ version).
I'm trying to get C-c C-c to default to python 3.
I have the following in my .emacs:
(setq py-python-command "/usr/local/bin/python3")
And when I run C-h b…

Josh
- 11
- 1
1
vote
0 answers
How to check which env activated in anaconda-mode
I use purcell/emacs.d configuration. When coding with python, I use following command to activate an env, with anaconda-mode.
M-x pythonic-activate RET /path/to/virtualenv RET
But nothing changes in the front window.
How to know which env is…

Felix
- 21
- 2
1
vote
2 answers
making python interpreter open in same window
Maybe I'm being irrational but I really really hate it when a command opens a new window in emacs. I'm using emacs on Ubuntu which came with python-mode and when I start an interpreter with C-c ! it pops up in a new window.
What I want is for emacs…

HahaHortness
- 1,570
- 1
- 15
- 16
1
vote
1 answer
pymode error detected while processing pymode#run#code_run
After installed vim-plugin Pymode, at first, I can successfully run my python code in vim. But after a while, there is something wrong like this:

kismet
- 11
- 2
1
vote
0 answers
vim pymode - sort lint errors and warnings by significance
I was wondering if there is any way to have errors always appear before PEP-8 warnings in the lint output?
Either of re-ordering the output or having PEP-8 and other style warnings only reported if there are no errors would work for my needs.

redcartel
- 292
- 1
- 3
- 15