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.
Answers:
You can have this functionality with the Anaconda Package.
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.
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.
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.
You can have this functionality with the Anaconda Package.
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.
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.