Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #+NAME: int
- #+BEGIN_SRC python :results value
- return [1, 2, 3]
- #+END_SRC
- #+NAME: print_table_info
- #+BEGIN_SRC python :var table=[]
- print "type = {}".format(type(table))
- print "table = {}".format(table)
- #+END_SRC
- #+CALL: print_table_info(table=int) :results output
- #+RESULTS:
- : type = <type 'list'>
- : table = [1, 2, 3]
- #+BEGIN_SRC emacs-lisp :results output
- (org-sbe print_table_info ":results output" (table (org-sbe int)))
- #+END_SRC
- #+RESULTS:
- :
- : (results (quote (1 2 3)))
- :
- : (results (type = <type 'str'>
- : table = (1 2 3)
- : "))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement