You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
R magic extension interferes with tab completion #2759
Enter %lsm and hit tab a couple of times. The first press completes %lsmagic, the second does nothing, and subsequent presses show %lsmagic as the only completion available, returning you to the prompt.
Clear the line (e.g. with backspace), type %load_ext rmagic, and hit return.
Repeat step 2. This time, each press of tab adds another % to the start of the line.
In [1]: %lsmagic
%lsmagic
In [1]: %load_ext rmagic
In [2]: %%%%lsmagic
It seems specific to rmagic - neither sympyprinting nor cythonmagic has the same effect.
Activity
bfroehle commentedon Jan 8, 2013
It seems to stem from the
import rpy2.robjects as roline in rmagic.py.bfroehle commentedon Jan 8, 2013
But you can trace that back to a minimal example which breaks it:
bfroehle commentedon Jan 8, 2013
I'd guess the root cause is something to do with this C code from
_rinterface.c(inEmbeddedR_init()):Or perhaps the lack of
--no-readlinein the arguments when R is spun up. We need to forward this upstream to ther2pyfolks.bfroehle commentedon Jan 8, 2013
And it's been forwarded upstream. https://bitbucket.org/lgautier/rpy2/issue/115/starting-r-breaks-ipython-tab-completion
Reset readline delimiters after loading rmagic.
Reset readline delimiters after loading rmagic.
Reset readline delimiters after loading rmagic.