Skip to content

zseashell/autocomplete-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

239 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Autocomplete Package Build Status

Python packages, variables, methods and functions with their arguments autocompletion in Atom powered by Jedi.

Demo

Features

  • Works with 🍎 Mac OSX, 🐧 Linux and 🏁 Windows
  • Works with both 🐍 Python 2 and 3
  • Automatic lookup of virtual environments inside of your projects
  • Configurable additional packages to include for completions
  • Prints first N characters of statement value while completing variables
  • Prints function arguments while completing functions
  • Go-to-definition functionality, by default on Alt+Cmd+G/Ctrl+Alt+G (thanks to @patrys)
  • If you have Hyperclick installed – you can click on anything to go-to-definition sample

Configuration

  • If using a virtualenv with third-party packages, everything should "just work", but if it's not – use the Python Executable Paths and/or Extra Paths For Packages configuration options to specify the virtualenv's site-packages. Or launch Atom from the activated virtualenv to get completion for your third-party packages

  • Be sure to check package settings and adjust them. Please read them carefully before creating any new issues

    • Set path to python executable if package cannot find it automatically
    • Set extra path if package cannot autocomplete external python libraries
    • Select one of autocomplete function parameters if you want function arguments to be completed

    image

Common problems

  • "Error: spawn UNKNOWN" on Windows
    • Solution: Find your python executable and uncheck the "Run this program as an administrator". See issue #22
  • You have a separated folder for virtualenvs (e.g. by using virtualenvwrapper) and all your virtualenvs are stored in e.g. ~/.virtualenvs/
    • Create symlink to venv from your project root
      • OR
    • Add virtualenv folder as additional project root
    • See issue #143

About

Jedi based Python autocomplete for Atom

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 94.6%
  • CoffeeScript 5.4%