Grégoire Jadi writes: > Hi, > > There is a bug in ob-python, the parameters aren't used to initialize > the session. Here is a patch that fixes it. Err, discard this. It's not enough to fix the bug since `org-babel-python-initiate-session' doesn't use the params either. I'll come back later with a correct patch (unless someone else is faster ;)). Sorry for the noise. Cheers > OK to push ? > > * lisp/ob-python.el (org-babel-execute:python): Send params to `org-babel-python-initiate-session'. > > It was not possible to configure the sesssion with custom parameters. > For example, the python interpreter with :python >> BEGIN_SRC python :session my-session :python ipython > --- > lisp/ob-python.el | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lisp/ob-python.el b/lisp/ob-python.el > index 3a9b8f6..f2e6f66 100644 > --- a/lisp/ob-python.el > +++ b/lisp/ob-python.el > @@ -74,7 +74,7 @@ This will typically be either `python' or `python-mode'." > "Execute a block of Python code with Babel. > This function is called by `org-babel-execute-src-block'." > (let* ((session (org-babel-python-initiate-session > - (cdr (assoc :session params)))) > + (cdr (assoc :session params)) params)) > (result-params (cdr (assoc :result-params params))) > (result-type (cdr (assoc :result-type params))) > (return-val (when (and (eq result-type 'value) (not session)) > -- -- Grégoire Jadi