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
1
vote
2 answers

Open new python shell on C-c C-c in python-mode.el

I have a small GTK python application that imports a package (Twisted) that may not be loaded twice. If I run my application in emacs with python-mode.el and press C-c C-c, the application gets executed in a python shell window. If I now close the…
gnirx
  • 197
  • 1
  • 1
  • 8
0
votes
1 answer

What do I need to do in order to get python-mode.el-6.0.5 to find python3.2? (Using OS X Lion)

I get the message that it can't be found when I try to open a python 3.2 interpreter.
methodmain
  • 230
  • 2
  • 11
0
votes
1 answer

Remap inferior-python-mode C-z key to python quit rather than emacs suspend or undo

So here's a technical question on how to exit from the current job of the inferior-python interpreter. Normally, C-z does the trick if I run the interpreter in a regular command shell. This calls python exit and whatever is running stops. The…
octi
  • 1,470
  • 1
  • 17
  • 28
0
votes
2 answers

How can I calculate time correctly?

*Here is my code * I want get ühole number from time import time import math start=time() total_time= 30 while time!=0: move=input('Chess move:') if move !='off': print(start) remaining_time=math.floor(total_time-start) …
Luiza
  • 5
  • 3
0
votes
1 answer

Problem with python-mode.el install

I just installed python-mode.el (6.0.1) and when I start up Emacs.app it gives me the following error: File error: Cannot open load file, highlight-indentation Are there dependencies for python-mode.el that I have to install first?
2daaa
  • 2,788
  • 7
  • 33
  • 44
0
votes
1 answer

Can't jump to line in pyflakes quickfix window

I recently installed the vim extension python-mode, which includes pyflakes. When I save a python file to disk, pyflakes automatically detects errors and style violations and displays them in a quickfix window. This screencast shows that hitting…
ludog
  • 74
  • 1
  • 8
0
votes
2 answers

updating pymode repository error: server does not allow request

I run the following command: git submodule update --init --recursive I got error: Server does not allow request for unadvertised object 837ecd3d7a8597ab5f28bc83072de68e16470f1e Fetched in submodule path 'submodules/pylama', but it did not contain…
sunxd
  • 743
  • 1
  • 9
  • 24
0
votes
0 answers

How to set python-mode so linters check for python 3 versus python 2 errors

To All, How do I set python-mode so the linters check for Python 3 versus Python 2 errors depending on if I am editing a Python 3 or a Python 2 file? After the last update of python-mode, the linters seems to be defaulting to Python 3. For example…
0
votes
1 answer

python module import error - python-mode [VIM]

I am trying to import a module from another directory and run the script using python-mode. I am encountering, module not found error, but the module is present in the location and my sys.path shows the module path has been added successfully. I am…
Bussller
  • 1,961
  • 6
  • 36
  • 50
0
votes
0 answers

Python-mode's linters not working on 4 vim installations

Too All, I cannot get python-mode's linters to work on 4 vim installations. On 2 PC's running Windows 10, and Python 2.7.14, I upgraded from vim 7.4 to 8.1. Steps as follows for vim 8.1: mkdir C:\Users\Steve\vimfiles\pack\plugins\opt cd…
0
votes
1 answer

Not an editor command: RopeGotoDefinition

I'm working with a fresh install of python-mode (installed with Vundle on Vim 8) and find that "go to definition" mapping never works no matter how I set g:pymode_rope_goto_definition_bind. Then I found RopeGotoDefinition is not an editor command.…
ReeseWang
  • 131
  • 1
  • 7
0
votes
2 answers

Quickfix Location List linter window stays open

I love the linters and the quickfix window, but on occasion I don't want to fix anything and simply want to exit the file. The current issue is that when I close the file, the quickfix window stays open. I know I can use :qa to exit both at the same…
0
votes
2 answers

How do I minimize code view in vim after switching to insert mode

An opened .py file in minimized view. After navigating to a class and switching to **insert mode** If I want to view the code details I just navigate to the method or class I want and switch to insert Mode as shown below. How do I do I minimize…
Philip Mutua
  • 6,016
  • 12
  • 41
  • 84
0
votes
1 answer

If you change a global variable in a vim plugin (python-mode) and reload it, isn’t it equivalent to just loading the .vimrc at startup?

Using Vim version: 7.4 In this line of the Python-mode documentation: https://github.com/python-mode/python-mode/blob/01c3131343aaa3c76f8cb656b5e9f54ac90ca04b/doc/pymode.txt#L234 it says that I can turn-on the variable (g:pymode_run) using let…
alpha_989
  • 4,882
  • 2
  • 37
  • 48
0
votes
3 answers

Disable automatic (preview) window (buffer) with a function signature

Every time I click dot, the function signature appears in a separate buffer. import sys sys.argv # in this moment I have a separate buffer opened with sys.argv signature Then this buffer exists until manually closed. I'd like to have it only…
zhukovgreen
  • 1,551
  • 16
  • 26