简体   繁体   English

完成显示函数名称并在工具提示中创建文档,但是找不到用于scipy的文档

[英]completion shows function name and creates documentation in tooltip but documentation not found for scipy

When I complete sp.integrate.quad I see a tooltip with the function documentation, but as soon as I accept the completion, the tooltip goes away. 当我完成sp.integrate.quad ,会看到带有功能文档的工具提示,但是一旦我接受完成,该工具提示就会消失。 I'd prefer to see the the main part of the doc string underneath the function the entire time I'm editing it's arguments. 我希望在我编辑参数的整个过程中都能在函数下方看到doc字符串的主要部分。 As a stop gap, I tried getting at the documentation another way. 为了制止差距,我尝试以另一种方式获取文档。 jedi:show-doc or company-jedi-show-doc look like promising functions for at least re-displaying the docstring information, but they give an error saying they can't find the documentation. jedi:show-doccompany-jedi-show-doc看起来像很有希望的功能,至少可以重新显示文档字符串信息,但是它们给出错误消息,提示找不到文档。 Why can't these procedures see the documentation, yet the initial completion tooltip can? 为什么这些过程看不到文档,而初始完成工具提示却可以? Has anyone used jedi to achieve something close to my desired setup? 有没有人使用绝地实现接近我想要的设置的东西?

Jedi Setup Info: 绝地安装信息:

https://gist.github.com/anonymous/11180631 https://gist.github.com/anonymous/11180631

py-install-directory var must be set correctly for jedi:show-doc. 必须为jedi:show-doc正确设置py-install-directory var。 you can simply set the variable directly in your emacs init file as the following sentance. 您可以直接在emacs初始化文件中直接将变量设置为以下形式。
(setq py-install-directory "~/.emacs.d/elpa/PYTHON-MODE DIRECTORY")

or following sentance for the case python-mode package is updated 或在更新python-mode软件包的情况下遵循以下观点
(setq py-install-directory (concat "~/.emacs.d/elpa/" (car (directory-files "~/.emacs.d/elpa/" nil "python-mode*"))))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM