GithubHelp home page GithubHelp logo

classicvalues / autocomplete-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kiteco/autocomplete-python

0.0 1.0 0.0 875 KB

Jedi based Python autocomplete for Atom

Home Page: https://atom.io/packages/autocomplete-python

License: GNU General Public License v2.0

Python 90.43% CoffeeScript 9.28% CSS 0.29%

autocomplete-python's Introduction

Python Autocomplete Package Build Status

Python packages, variables, methods and functions with their arguments autocompletion in Atom powered by your choice of Jedi or Kite.

Please note that this package is sponsored by Kite. More info is provided during the install screens of autocomplete-python.

See releases for release notes.

Jedi-driven release notes follow. For more about using the Kite completions engine see kite.com.

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 for idea and implementation.

  • Method override functionality. Available as override-method command. Thanks to @pchomik for idea and help.

  • If you have Hyperclick installed โ€“ you can click on anything to go-to-definition sample

  • Show usages of selected object sample

  • Rename across multiple files. It will not touch files outside of your project, but it will change VCS ignored files. I'm not responsible for any broken projects without VCS because of this. 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
      • OR
    • Use a virtualenv with the same name as the folder name of your project and use $PROJECT_NAME variable to set path to python executable. You can use same variable to set extra paths as well. For example:
    /Users/name/.virtualenvs/$PROJECT_NAME/bin/python3.4
    
  • No argument completion after I type left parenthesis character
    • Likely this is because you have non standard keyboard layout. Try to install the keyboard-localization package from: https://atom.io/packages/keyboard-localization and use keymap generator to check what unicode character being generated after you type (. Currently we trigger argument completion only on U+0028, U+0038 and U+0039.

autocomplete-python's People

Contributors

abe33 avatar adamsmith avatar alexflint avatar brennv avatar cheneave avatar collinmutembei avatar crowsonkb avatar danielunderwood avatar dessant avatar fitriani1021 avatar gmist avatar gnestor avatar itsdhung avatar jonboiser avatar kris-steinhoff avatar leotada avatar nalinbhardwaj avatar omarithawi avatar paradoxxxzero avatar patrys avatar pixel-therapy avatar quarthex avatar ronjouch avatar rschiang avatar sadovnychyi avatar scottnburke avatar walles avatar zskymn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.