Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fanpeng-kong opened this issue Apr 14, 2016 · 11 comments

Comments

@fanpeng-kong
Copy link

@fanpeng-kong fanpeng-kong commented Apr 14, 2016

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.

@xin-jin

This comment has been minimized.

Copy link

@xin-jin xin-jin commented Jan 24, 2017

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

@jockevattenbonde

This comment has been minimized.

Copy link

@jockevattenbonde jockevattenbonde commented Sep 1, 2017

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

@simonpintarelli

This comment has been minimized.

Copy link

@simonpintarelli simonpintarelli commented Sep 13, 2017

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

@gregsexton

This comment has been minimized.

Copy link
Owner

@gregsexton gregsexton commented Sep 16, 2017

Everyone using elpy?

@simonpintarelli

This comment has been minimized.

Copy link

@simonpintarelli simonpintarelli commented Sep 16, 2017

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

@xin-jin

This comment has been minimized.

Copy link

@xin-jin xin-jin commented Sep 16, 2017

I am using elpy as well.

@gregsexton

This comment has been minimized.

Copy link
Owner

@gregsexton gregsexton commented Sep 18, 2017

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.

@carlosperezm

This comment has been minimized.

Copy link

@carlosperezm carlosperezm commented Oct 15, 2017

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.

@kjschanney

This comment has been minimized.

Copy link

@kjschanney kjschanney commented Nov 5, 2017

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.

@njunxuan

This comment has been minimized.

Copy link

@njunxuan njunxuan commented Nov 28, 2017

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.

@dilzeem

This comment has been minimized.

Copy link

@dilzeem dilzeem commented Feb 8, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
9 participants
You can’t perform that action at this time.