On Fri, 2 Dec 2016, Piter wrote:

Hi everybody.

I would like to get a property of org-mode entry and pass it as a string variable to a python source code.

Is it possible to do? I have been looking into attach screensshot code but since my elisp experience is very limited I can not figure it out.

Any tips about it? may be I can use inline ellisp function in python source header?


That's about right:


# Refresh the `property' line with C-c C-c the first time you use it.

#+PROPERTY: my-string "Hello everyone!"

#+header: :var ms=(org-entry-get (point) "my-string" t)
#+BEGIN_SRC python :results output
print ms
#+END_SRC

#+RESULTS:
: "Hello everyone!"

HTH,

Chuck

p.s. do not forget to


Reply via email to