Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python console tab completion not working in windows

running Windows 10

From what I understand python3 has tab completion in the python console already built in but this isn't working for me.

When I hit tab there is no completion:

enter image description here

Im aware there are modules that can do this, but I'd like to use the native feature if it is available to me on windows.

like image 786
red888 Avatar asked Oct 26 '17 00:10

red888


People also ask

How do I turn on autocomplete in Python?

Enter: enter edit mode. Shift+Enter: run cell, select below. Shift+Tab: signature autocompletion.

How do I enable autocomplete in Python idle?

Python IDLE has basic code completion functionality. It can only autocomplete the names of functions and classes. To use autocompletion in the editor, just press the tab key after a sequence of text. The call tip will display as a popup note, reminding you how to append to a list.

Does Python have tab completion feature?

Tab Completion and History Editing. Completion of variable and module names is automatically enabled at interpreter startup so that the Tab key invokes the completion function; it looks at Python statement names, the current local variables, and the available module names.

How do I get idle suggestions in Python?

As it says in the settings of IDLE, you can trigger the autocomplete with "Control + Space", e.g. after a "QtGui.". Then a menu opens where you can arrow-scroll through the entries.


1 Answers

The builtin completion relies on the GNU readline library.

You may be able to get completion working by installing the python version (pyreadline) of this package on Windows.

python -m pip install pyreadline 
like image 122
John La Rooy Avatar answered Sep 17 '22 17:09

John La Rooy