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

org-babel-expand-src-block behaviour is not pulling in :var header arguments

Open Xparx opened this issue 9 years ago • 1 comments

Hi,

Playing around with some functionality that requires that the function org-babel-expand-src-block works as expected, meaning that the following orgmode content

#+BEGIN_SRC python :var data="ABC" :exports none
print(data)
#+END_SRC

when using org-babel-expand-src-block would open a buffer with

data="ABC"
print(data)

however if ob-ipython and ipython as src header is used then the :var header argument is not pulled in correctly.

Is it possible to make this work? The motivation is to produce reproducible code when possible while still make it possible to use ob-ipython.

Xparx avatar Dec 25 '16 16:12 Xparx

I just want to remark that this is also an issue for me, and a serious problem! My workflow makes very heavy use of :var headers in python source blocks.

ligon avatar Oct 05 '17 13:10 ligon