[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] using a table from one org-file as a variable in a code block in ano
[O] using a table from one org-file as a variable in a code block in another org-file
Mon, 26 Nov 2012 11:47:13 -0500
I have been using tables as variables for codeblocks on an org-file, e.g.
| user | oxide | xc |
| jkitchin | TiO2 | LDA|
#+BEGIN_SRC python :var data=class-data
from pylab import *
import numpy as np
vol = [x if x != '' else np.nan for x in data]
B = [x if x != '' else np.nan for x in data ]
ylabel('Bulk modulus (GPa)')
title('All polymorphs of all oxides for all functionals')
This is a fantastic feature, since I can have some code that is
expensive to run create the table, but then have analysis code that is
quick, since it only reads the table.
But, sometimes the tables are defined in other org-files. Is there a
way to specify a table from another org-file in the variable header?
Something like this would be pretty handy:
Especially if I could click on it, and have it open the other org-file
with point at the table!
Any thoughts? Thanks,
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
- [O] using a table from one org-file as a variable in a code block in another org-file,
John Kitchin <=