gregsexton / ob-ipython

org-babel integration with Jupyter for evaluation of (Python by default) code blocks
737 stars 108 forks source link

ob-ipython-kernel buffer only works after manually activating comint-mode #184

Open dangirsh opened 6 years ago

dangirsh commented 6 years ago

Thanks for the great package!

I can only use the ob-ipython-kernel buffer after manually activating comint-mode. Does anyone else have this issue? I'm afraid my setup is to blame...

System Info :computer:

chrstfer commented 6 years ago


~~~EDIT: After changing the default interpreter to ipython manually (at least, I think that's what did it, I've also made a symlink in /usr/local/bin/python to /usr/local/bin/python3 since I replied here) it began to work without turning on comint mode~~~

EDIT 2: So, if I do C-c C-v C-z to get a REPL then it works off the bat, including completions (despite it giving me a warning that it doesn't detect readline and so completions were disabled). On the other hand, if I just C-x b into *ob-ipython-kernel-default*, which is created when I run an ipy source block, then I need to manually enable comint mode, and completions are broken. Both seem to be connecting to the same ipython session in the background, with access to the same functions and the same incrementing command counter.