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 --