On Wednesday, 10 Aug 2022 at 15:10, Ihor Radchenko wrote:
> This looks like a bug in ess itself.

[...]

> Please report to ESS devs.

After discussion with Stephen Eglen on the ESS mailing list, he gave me
a single line of elisp to add to ob-julia.el for sessions to work and
noted that the Julia installation must have two specific packages
available (I'm not sure why that is).  See attached patch (which
includes a URL for the archive of the email thread).

thank you,
eric

-- 
: Eric S Fraga, with org release_9.5.4-737-gd3a9c4 in Emacs 29.0.50
From 8847c86ae29d8065353e8f75793d917bf615637e Mon Sep 17 00:00:00 2001
From: Eric S Fraga <e.fr...@ucl.ac.uk>
Date: Tue, 16 Aug 2022 13:23:18 +0100
Subject: [PATCH] lisp/ob-julia.el: Fix session support for Julia

* ob-julia.el (org-babel-julia-evaluate-session, commentary): Add line
to initialize ESS so that Julia sessions work.  Also added text in
commentary about Julia packages that sessions require.  Fix
contributed by Stephen Eglen.  See discussion:
https://stat.ethz.ch/pipermail/ess-help/2022-August/013113.html.
---
 lisp/ob-julia.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lisp/ob-julia.el b/lisp/ob-julia.el
index 7f25fafad..a8a832cc4 100644
--- a/lisp/ob-julia.el
+++ b/lisp/ob-julia.el
@@ -26,6 +26,9 @@
 ;; Org-Babel support for evaluating julia code
 ;;
 ;; Based on ob-R.el by Eric Schulte and Dan Davison.
+;;
+;; Session support requires the installation of the DataFrames and CSV
+;; Julia packages.
 
 ;;; Code:
 (require 'cl-lib)
@@ -280,6 +283,7 @@ last statement in BODY, as elisp."
   (cl-case result-type
     (value
      (with-temp-buffer
+       (setq ess-local-customize-alist t)
        (insert (org-babel-chomp body))
        (let ((ess-local-process-name
 	      (process-name (get-buffer-process session)))
-- 
2.30.2

Reply via email to