python - 在 R 中看不到带有网状结构的 Python 函数文档
问题描述
我在 RStudio (1.4) 上遇到了一个问题,我在帮助面板中看不到 Python 文档。我正在使用reticulate
v. 1.20,我的 Python 解释器工作正常。但是,如果我使用 F1 键盘快捷键或运行,例如,?np.random.rand
我会收到以下错误:
>>> ?np.random.rand
Error in html$page(pydoc$describe(resolved), html$document(resolved, name)) :
attempt to apply non-function
Error in html$page(pydoc$describe(resolved), html$document(resolved, name)) :
attempt to apply non-function
Error in html$page(pydoc$describe(resolved), html$document(resolved, name)) :
attempt to apply non-function
帮助面板显示:/python/np.random.rand.html not found
没有在其他地方看到这个问题。
解决方案
这似乎在开发版本中已修复,reticulate
可以按如下方式安装:
devtools::install_github("rstudio/reticulate")
推荐阅读
- java - 将 5 种不同的产品保存到 sharedpreferences
- javascript - Javascript 使用变量作为属性名称来切换布尔值
- javascript - 如何在 Vanilla Javascript 中仅定位当前悬停的元素
- javascript - 在引导程序中隐藏/显示卡片
- python - 二叉树和的循环不变量
- c++ - 如何将 IF 语句与字符串用户输入一起使用?
- android - 如何从以下动态 JSON 生成普通的旧 Java 对象
- .net-core-3.0 - 在 .NET Core 中加载程序集和类型
- html - 在某些情况下隐藏 Angular 指令的元素
- javascript - 错误:使用 Node.js 连接到 mysql 服务器时读取 ECONNRESET