Alg_D
Alg_D

Reputation: 2390

python - atom IDE how to enable auto-complete code to see all functions from a module

I am using atom IDE for my python projects. there are auto-complete suggestions in some cases but I'd like to know if it's possible to have a list of all possible functions that a imported module has, for instance if i import import urllib when I type urlib. and press (ctrl+tab) would like to see a list with the possible functions/methods to use.

Is that possible? Thanks

Upvotes: 10

Views: 26428

Answers (3)

Adolfoj
Adolfoj

Reputation: 116

Atom have a built-in package called autocomplete-plus. You can extends its functionalities by installing autocomplete-plus-python-jedi.

from Atom page:

Description:

This is a provider for the awesome Autocomplete Plus making it ready for Python code.

Features

  • Autocompletion from Jedi.
  • Suggestions include functions' methods (optionally) - just tab through them!
  • Comes with bundled Jedi - no need for jedi in your pythonpath

Installation

Either use Atoms package manager or apm install autocomplete-plus-python-jedi

Upvotes: 0

Doogle
Doogle

Reputation: 1264

Atom is getting various modifications. Autocomplete-python package is a handy package which helps code faster. The way to install it has changed. In all new Atom editor go to File->Settings->install search for autocomplete-python and click on install. Voila its done, restart Atom is not required and you will see the difference with next time you edit python code.

Deb

Upvotes: 5

Alg_D
Alg_D

Reputation: 2390

I found the solution for my own question. Actually I had the wrong plugin installed!

So, in the IDE, edit->preferences, and in the packages section just typed autocomplete-python and press install button.

After restart Atom, it should start work :)

Upvotes: 14

Related Questions