DONE clojure

  • State "DONE" from "" 2010-03-01 Mon 10:26

DONE add session support for clojure

  • State "DONE" from "" 2010-01-06 Wed 17:41

    Thanks to Joel Boehland org-babel-clojure now supports multiple sessions. This can be exercised through the following

raw org-mode

#+srcname: set-clojure-session-var-s1
#+begin_src clojure :session s1 :results value
(def *var* [1 2 3])
#+end_src

#+results: set-clojure-session-var-s1
: #'user/*var*


#+srcname: set-clojure-session-var-s2
#+begin_src clojure :session s2 :results value
(def *var* [3 4 5 6 7 8 9])
#+end_src

#+results: set-clojure-session-var-s2
: #'user/*var*


#+srcname: get-clojure-session-var-s1
#+begin_src clojure :session s1 :results value
(count *var*)
#+end_src

#+results: get-clojure-session-var-s1
: 3


#+srcname: get-clojure-session-var-s2
#+begin_src clojure :session s2 :results value
(count *var*)
#+end_src

#+results: get-clojure-session-var-s2
: 7

exported to html

(def *var* [1 2 3])
(def *var* [3 4 5 6 7 8 9])
(count *var*)
(count *var*)