gregsexton / ob-ipython

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

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

Open Xparx opened 7 years ago

Xparx commented 7 years ago

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.

ligon commented 7 years ago

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.