Open alastairdb opened 6 years ago
Also, when you have ob-ipython-command
set to "ipython" then ob-ipython-auto-configure-kernels
wont work since "ipython kernelspec list --json" emits warnings which json-read-from-string
cant handle in ob-ipython--get-kernels
. This means that every time you open an org file you get an error. Very annoying.
I think it is a bit sneaky to modify a global variable like
org-mode-hook
when loadingob-ipython.el
This will then get called in all org-mode buffers, even if they contain no ob-ipython src blocks, let alone execute them.In addition, I think it is reasonable to use ob-ipython with a virtualenv and specify the virtualenv by setting a file local value for
ob-ipython-command
. This technique does not work whenob-ipython-auto-configure-kernels
is called in the major mode hook, which is run before setting the file local variables. I suggest making the call toob-ipython-auto-configure-kernels
elsewhere. Here is a patch that does it inorg-babel-execute:ipython
: