Skip to content

kris-steinhoff/autocomplete-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

154 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
  • Watches whole package of the file you're currently editing
  • Configurable additional PATHs to include for completions (global for now)
  • You can include project specific folders by using $PROJECT variable in PATH configuration
  • 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)

Configuration

  • If using a virtualenv with third-party packages, use the "Extra PATH" configuration option to specify the virtualenv's site-packages. Or launch Atom from the activated virtualenv to get completion for your third-party packages

  • If you're on Windows:

    • Install python
    • Make Sure that python is available in your PATH: echo %PATH%. If it's not, add it and restart your system: set PATH=%PATH%;C:\Python27
  • Be sure to check package settings and adjust them. Please read them carefully before creating any new issues

    • Set path to python directory if package cannot find your python executable
    • 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

About

Jedi based Python autocomplete for Atom

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 96.7%
  • CoffeeScript 3.3%