an example/test orgmode file
This commit is contained in:
parent
2a48331bb2
commit
4e12f6437f
1 changed files with 41 additions and 0 deletions
41
tests.org
Normal file
41
tests.org
Normal file
|
@ -0,0 +1,41 @@
|
|||
* ob-sclang tests
|
||||
|
||||
These blocks are best evaluated inside emacs.
|
||||
|
||||
Post a simple line:
|
||||
#+begin_src sclang
|
||||
"boo".postln;
|
||||
#+end_src
|
||||
|
||||
This python code does not need to be evaluated beforehand.
|
||||
#+name: frompy
|
||||
#+begin_src python :session sc :results value
|
||||
[1,2,3,4]
|
||||
#+end_src
|
||||
|
||||
#+RESULTS: frompy
|
||||
| 1 | 2 | 3 | 4 |
|
||||
|
||||
|
||||
|
||||
#+name: tbl
|
||||
| boo | 5 | 9 |
|
||||
| good | 7 | xa |
|
||||
|
||||
#+begin_src sclang :session boo :dir "/tmp" :var x=10 y=11 z=1.1 table=tbl tb=frompy
|
||||
x.postln;
|
||||
x.class.postln;
|
||||
y.postln;
|
||||
y.class.postln;
|
||||
z.postln;
|
||||
z.class.postln;
|
||||
table.postln;
|
||||
table.class.postln;
|
||||
tb.postln;
|
||||
tb.class.postln;
|
||||
#+end_src
|
||||
|
||||
* Local Variables :noexport:
|
||||
# Local Variables:
|
||||
# org-confirm-babel-evaluate: nil
|
||||
# End:
|
Loading…
Reference in a new issue