Cannot see Python function documentation in R with reticulate

Viewed 208

I'm running into an issue on RStudio (1.4) where I cannot see Python documentation in the Help Panel. I'm using reticulate v. 1.20 and my Python interpreter is working fine. But if I use the F1 keyboard shortcut or run e.g., ?np.random.rand I get the following error:

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

The Help panel reads: /python/np.random.rand.html not found

Haven't seen this issue anywhere else.

2 Answers

This seems to be fixed in the development version of reticulate which can be installed as follows:

devtools::install_github("rstudio/reticulate")

Related