ob-ipython icon indicating copy to clipboard operation
ob-ipython copied to clipboard

Auto complete not working in another code block under the same session

Open fanpeng-kong opened this issue 9 years ago • 11 comments

I tried the code as shown in the example document. I first import matplotlib.pyplot and numpy in the first session code block In the org-mode ipython mode buffer for this code block, I can get auto complete after I do np. or plt. However when I started another code block under the same session, the auto complete no longer works. It was clearly shown working in the screenshot provided by @gregsexton, so I wonder if anyone has the same problem and could give me some suggestions? Thanks in advance

Some information: I use Elpy for the python mode, which use company mode for auto completion.

fanpeng-kong avatar Apr 14 '16 02:04 fanpeng-kong

I am also interested in this. Is it a technically feasible feature?

xin-jin avatar Jan 24 '17 20:01 xin-jin

Hello there, sorry for necro-bumping, but this seems to be unresolved? I got the same issue. Anyone figured it out?

jockevattenbonde avatar Sep 01 '17 07:09 jockevattenbonde

I'm also be very interested in a solution for this issue.

simonpintarelli avatar Sep 13 '17 11:09 simonpintarelli

Everyone using elpy?

gregsexton avatar Sep 16 '17 16:09 gregsexton

I'm using elpy, but I would switch to anything else which makes auto-completion work with ob-ipython.

simonpintarelli avatar Sep 16 '17 20:09 simonpintarelli

I am using elpy as well.

xin-jin avatar Sep 16 '17 20:09 xin-jin

I would switch to anything else which makes auto-completion work with ob-ipython

I just use raw python-mode and everything works fine for me. I tend to open a repl using C-c C-v C-z - I think that helps.

I'll take a look at elpy when I get chance.

gregsexton avatar Sep 18 '17 08:09 gregsexton

I happen to have the same issue mentioned here using elpy as well.

I have discovered that autocompletion only works by explicitly calling the command company-ob-ipython. I have already added the line (add-to-list 'company-backends 'company-ob-ipython) to my emacs config file, but does not seem to change this behaviour.

pemocarlo avatar Oct 15 '17 00:10 pemocarlo

Hi, I use C-c ' to switch to major mode when inside an iPython SRC block as mentioned in org documentation Link. I am attaching the screenshot of the predictions that I am getting. I am using latest version of spacemacs and the jupyter notebook on arch linux.

Hope it helps someone.

emacs.

kjschanney avatar Nov 05 '17 17:11 kjschanney

Same issue here. Using company-ob-ipython for completion causes massive lag when typing in the org-src-edit. But when using elpy, its in a different session and thus does not recognise completions for earlier defined functions.

jakejx avatar Nov 28 '17 10:11 jakejx

Has anyone solved this? Also having the same issue with spacemacs.

Currently company-ob-ipython works for me but it doesn't automatically come as a tool tip.

dilzeem avatar Feb 08 '18 16:02 dilzeem