Any plans to add python code completion to RNotebook when used with reticulate?



Hi, I just saw that it's possible to run python code in RNotebook this is pure amazement!

Are there any plans for code completion?

knitr::opts_chunk$set(echo = TRUE)
import pandas
##### Please Please Code Completion for python in RNotebooks
flights = pandas.read_csv("~/Downloads/flights.csv") ##### Please Please Code Completion for python!!!


I swear I saw a GitHub issue on this a while back, but I can’t seem to find it.

Assuming there is no feature request, I’d encourage you to make one. (Some tips on how best to do that;

Here’s a discussion about the same feature for Rcpp code chunks from just four months ago,


Can’t speak for the issue tracker, but maybe you weren’t imagining things because:


Ok I tried 1.2 I see I can do code complete for python inside R but not inside Python snippets

so this get code completion:

```{r setup, include=FALSE}
pandas <- import("pandas")
plt <- import("matplotlib.pyplot")
np <- import("numpy")
t = np$arange(0.1, 2, 0.01)
y <- t^2

while this does not get code completion working:

flights = pandas.read_csv("~/Downloads/flights.csv")
import matplotlib.pyplot as plt

I guess that is the supposed to be status in 1.2 thanks!


Hm, so with 1.2 there is:

But not python code completion in R Markdown python chunks?


Autocompletion should work within Python chunks in R Markdown documents:


Can you provide more details on what you're seeing?


uploaded moving gif which shows I have completion with pandas but not for arguments in numpy details in video


Thanks. This is an issue in reticulate itself, and we're somewhat handicapped as Python does not provide argument information for builtin functions. See: