Questions tagged [python-mode]

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)

150 questions
0
votes
1 answer

How can I turn off vim python-mode's mccabe completely check for just one function?

Title pretty much says it, but just to be sure: I'm not looking for a way of turning off the mccabe check for all callables (functions, methods), just for specific callables I've decided have a good reason to be complex (like a merge sort). Thanks!
dstromberg
  • 6,954
  • 1
  • 26
  • 27
0
votes
1 answer

How to launch python-mode on a buffer with vim?

I've just installed python-mode for my Vim, but I can't figure out how to run it on an open buffer, without saving the buffer as a .py file. Only way I can run python-mode seems to be by opening a .py file.
Skamah One
  • 2,456
  • 6
  • 21
  • 31
0
votes
2 answers

How to prevent Python-mode from auto inserting "import"?

I use Python-mode (pymode) in Vim. When I begin typing an import statement, from foo import bar Pymode auto inserts import such that I end up with from foo import import bar How can I prevent Pymode from auto inserting/completing import?
skyler
  • 8,010
  • 15
  • 46
  • 69
0
votes
1 answer

py-execute-line sends the whole buffer to the python process

I started to play with python-mode in Emacs (latest Emacs, latest python-mode.el) When I try to send of line of code to the process via py-execute-line or send function definition via py-execute-def-or-class, it grabs the whole buffers, saves it in…
Andrei
  • 175
  • 1
  • 9
0
votes
1 answer

emacs 24.5 python-mode (stock version Vs 6.2.1)

I have discovered an issue with python-mode in emacs. I generally c++ develop and seldom do python. I have recently discovered this issue: I emacs –Q I open a python file It contains: import re as myre Var = [ % The % represents the cursor…
rjd
  • 21
  • 3
0
votes
1 answer

How to change the default pdb command format in emacs?

In python-mode when I edit a python file, if I type in M-x pdb, it will show Run pdb (like this): pdb filename.py, but it doesn't work, I will have to change it to python -i -m pdb filename.py. I hope the default format to be python -i -m pdb…
Crazymage
  • 114
  • 9
0
votes
1 answer

Why doesn't button-lock-mode work with python-mode in Emacs?

I'd like to have clickable links to JIRA tickets in my Python code from within Emacs. For example, I use doxygen docstrings in my integration test code, which links a ticket number: def test_user_type_isolation(self): """ Ensure UDT cannot…
EnigmaCurry
  • 5,597
  • 2
  • 23
  • 15
0
votes
3 answers

configuration of .emacs to use IPython interpreter

I am new to lisp and having hard time configuring emacs for ipython. Part of my .emacs file looks like this: ;; Python mode settings (require 'python-mode) (add-to-list 'load-path "~/.emacs.d/elpa/") (let ((default-directory "~/.emacs.d/elpa/")) …
usr8
  • 11
  • 2
0
votes
1 answer

Folding body of functions in python with vim

For instance, if I have this function: def foo(): a = 5 print a ... If I fold it, I get this: def foo(): +-- 123 lines: a = 5 --------------------------------------------- but what I would really like would be something like…
nunos
  • 20,479
  • 50
  • 119
  • 154
0
votes
1 answer

vim slows down for autocompop for yaml files

This is my vimrc. The vim is really slow in navigation for yaml files. I disabled the L9 and autocompop plugin and its faster now. Is there way to have have the plugin and still have a better navigation. Also I have both pythonmode and jedi-vim for…
Arman
  • 194
  • 9
0
votes
2 answers

Installed python-mode; now I only see class names in my file

I installed python-mode for vim on my Mac OSX system. I decided to try one of the python motion commands. I hit [C which I thought would go to the next class. But the screen also switched, to show ONLY class names in gray highlighting. I've searched…
0
votes
1 answer

Vim python-mode plugin picks up system python and not anaconda

When i use python-mode it uses my system (mac python), I have anaconda installed and want Vim to autocomplete etc with that version of python As it stands now, python-mode will only autocomplete modules in from system python and not any other…
Tooblippe
  • 3,433
  • 3
  • 17
  • 25
0
votes
1 answer

Breakpoint shortcut key in Vim Python-mode not updating

I installed Python-mode as a plugin in my .vimrc: Plugin 'klen/python-mode' It got installed fine, but I had the breakpoint set to my b like this: " Enable breakpoints plugin let g:pymode_breakpoint = 1 let g:pymode_breakpoint_key =…
YPCrumble
  • 26,610
  • 23
  • 107
  • 172
0
votes
1 answer

Auto-indent in python-mode 6.2.0

I recently updated python-mode to version 6.2.0 and the indentation behaviour became less efficient. For instance, typing try: something to try except SomeError: used to correctly indent SomeError as soon as I typed :. It does not work…
M. Toya
  • 615
  • 8
  • 24
0
votes
2 answers

Disable completion pop-up in python-mode shadowing indentation

I updated recently my version of python-mode.el. Since then pressing at end of lines tries completion instead of indentation and pops up a buffer of suggestion. I would rather have only indentation. I use something else for completion. How can this…
M. Toya
  • 615
  • 8
  • 24
1 2 3
9
10