Install Jedi in Emacs

Source: Internet
Author: User
Tags virtualenv

JediIt's great.PythonCan be displayedDocstring, function arguments and code location.

Installation steps:

I. InstallationPythonVirtual Environment
SudoApt-GetInstallPython-virtualenv

Or

 
SudoApt-GetInstallPython-PipSudoPipInstallVirtualenv
Ii. Installation Jedi

InEmacs(A friend's help is neat and neat ):

1. M-X: List-packages

2. C-s Jedi => I => X => Y

3. M-X: List-packages

4. C-s Exec-path-from-shell => I => X => Y

5. Restart you Emacs

6. M-X: Exec-path-from-shell-Initialize

7. M-X: Jedi: Install-Server

In this way, the installation is complete, and then the configuration is:

 
; Jedi (autoload'Jedi: Setup "Jedi" Nil t) (setq Jedi: setup-Keys T); note that this sentence should be placed first (add-hook'Python-mode-hook'Jedi: Setup) (setq Jedi: complete-on-dot t); optional
Iii. Use

In the python file, for example, after the OS is imported, enter the dot operator OS. Then the completion menu is displayed. Enter OS. Path, place the cursor on the path, and enter the command.M-x Jedi: Show-DocOr shortcut key: c-c d (if this shortcut key is valid, the configuration file must contain setq Jedi: setup-Keys T ), this will display the OS in a new buffer. path document!

-- End --

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.