Commit 7681ac4b authored by G. Jay Kerns's avatar G. Jay Kerns

added disclaimer about session evaluation

parent 621be9bd
.juliahistory
*~
*.pdf
\ No newline at end of file
This diff is collapsed.
......@@ -16,14 +16,13 @@ keybindings.
* What you need to get started
- Note: :: a lot of the code blocks below have the header argument
=:eval no-export=. This means that the code block can be
evaluated interactively by =C-c C-c= with point in the code
block but will /not/ be evaluated during export. That
header argument is present because those blocks have
settings which conflict with my current setup (or are
otherwise redundant) yet are meant to be useful for other
people working through this document.
- *Note:* several code blocks below have the header argument =:eval
no-export=. This means that the code block can be evaluated
interactively by =C-c C-c= with point in the code block but will
/not/ be evaluated during export. That header argument is present
because those blocks have settings which conflict with my current
setup (or are otherwise redundant) yet are meant to be useful for
other people working through this document.
** Julia
......@@ -327,6 +326,15 @@ Org manual, and see Worg too for more information.
setting with the line =#+PROPERTY: tangle yes= near the top of the
org file. See the Org manual for details.
- At the time of this writing =ob-julia.el= only supports =:session=
evaluation and does not support external process evaluation. This
means that every =SRC julia= block should have a =:session
SOMETHING= header argument. Alternatively, you can put a
buffer-wide header argument at the top of the org file, something
like this:
: #+PROPERTY: session *julia*
- You may have noticed that those =julia= code lines with no output
(for instance, lines with semicolons =;= at the end) generate an
empty line in the =#+RESULTS= below the code block. Consequently,
......@@ -361,3 +369,6 @@ Org manual, and see Worg too for more information.
following line at the top of this org file.
: #+LaTeX_HEADER: \DeclareUnicodeCharacter{22EE}{\vdots}
- =ob-julia.el= does not support =rownames= and =colnames= like =ob-R.el= does.
......@@ -51,11 +51,6 @@
((lambda (inside)
(if graphics-file
inside
; julia's graphics devices don't work like R's do
; (append
; (list (org-babel-julia-construct-graphics-device-call
; graphics-file params))
; inside)
inside)
)
(append (org-babel-variable-assignments:julia params)
......@@ -187,35 +182,6 @@ current code buffer."
(and (member "graphics" (cdr (assq :result-params params)))
(cdr (assq :file params))))
;; The following isn't necessary with julia because
;; we write all plots from inside the code-block
;
;(defun org-babel-julia-construct-graphics-device-call (out-file params)
; "Construct the call to the graphics device."
; (let ((devices
; '((:png . "png")
; (:svg . "svg")
; (:pdf . "pdf")
; (:eps . "eps")))
; (allowed-args '(:width :horizontal))
; (device (and (string-match ".+\\.\\([^.]+\\)" out-file)
; (match-string 1 out-file)))
; (extra-args (cdr (assq :julia-dev-args params))) filearg args)
; (setq device (or (and device (cdr (assq (intern (concat ":" device))
; devices))) "png"))
; (setq filearg
; (if (member device '("postscript")) "file" "filename"))
; (setq args (mapconcat
; (lambda (pair)
; (if (member (car pair) allowed-args)
; (format ",%s=%S"
; (substring (symbol-name (car pair)) 1)
; (cdr pair)) ""))
; params ""))
; (format "%s(%s=\"%s\"%s%s%s)"
; device filearg out-file args
; (if extra-args "," "") (or extra-args ""))))
(defvar org-babel-julia-eoe-indicator "print(\"org_babel_julia_eoe\")")
(defvar org-babel-julia-eoe-output "org_babel_julia_eoe")
......@@ -245,11 +211,6 @@ last statement in BODY, as elisp."
(let ((tmp-file (org-babel-temp-file "julia-")))
(org-babel-eval org-babel-julia-command
(format org-babel-julia-write-object-command
;; don't need row-names or col-names
; (if row-names-p "TRUE" "FALSE")
; (if column-names-p
; (if row-names-p "NA" "TRUE")
; "FALSE")
(org-babel-process-file-name tmp-file 'noquote)
(format "begin\n%s\nend" body)))
(org-babel-julia-process-value-result
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment