How can I have autocomplete for python libraries in sublime

Question:

Currently when I import some code, for example:

from datetime import datetime

I can’t see what methods it has. How could I know that there is utcnow() for example. It would be great if there is some plugin for sublime so that I have this functionality , as it is in eclipse with cntr+space for methods. Also may be if there is some navigation between classes definitions , or going to property definition and etc.

Preferences plugins

Asked By: makkasi

||

Answers:

You can have this functionality with the Anaconda Package.

enter image description here

Anaconda includes a lot more features than just auto completetion. You can install the Jedi Package. This is the auto complete that ships with Anaconda.

Answered By: Vader

try SublimeJEDI

step 1: ctrl+shift+p search - install package

step 2: Wait for few seconds until drop down box to appear

step 3: search Jedi – Python autocompletion and press enter

now auto completion for python will work in sublime..

Note: you can try Anaconda instead Jedi using same step.

Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.