emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Fraga, Eric" <e.fraga@ucl.ac.uk>
To: Ihor Radchenko <yantar92@gmail.com>
Cc: Bill Burdick <bill.burdick@gmail.com>,
	Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: :session for Julia in org babel?
Date: Tue, 16 Aug 2022 12:52:21 +0000	[thread overview]
Message-ID: <87ilmsqrjv.fsf@ucl.ac.uk> (raw)
In-Reply-To: <87fsi4efqr.fsf@localhost> (Ihor Radchenko's message of "Wed, 10 Aug 2022 15:10:04 +0800")

[-- Attachment #1: Type: text/plain, Size: 569 bytes --]

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-lisp-ob-julia.el-Fix-session-support-for-Julia.patch --]
[-- Type: text/x-diff; name="0001-lisp-ob-julia.el-Fix-session-support-for-Julia.patch", Size: 1310 bytes --]

From 8847c86ae29d8065353e8f75793d917bf615637e Mon Sep 17 00:00:00 2001
From: Eric S Fraga <e.fraga@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


  parent reply	other threads:[~2022-08-16 12:53 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-08 15:19 :session for Julia in org babel? Fraga, Eric
2022-08-08 15:49 ` Bill Burdick
2022-08-08 16:28   ` Fraga, Eric
2022-08-08 16:51     ` Bill Burdick
2022-08-08 17:36       ` Fraga, Eric
2022-08-09 12:39       ` Ihor Radchenko
2022-08-09 12:53         ` Fraga, Eric
2022-08-09 12:54           ` Bill Burdick
2022-08-10  7:10           ` Ihor Radchenko
2022-08-10  7:56             ` Fraga, Eric
2022-08-16 12:52             ` Fraga, Eric [this message]
2022-08-16 13:21               ` Ihor Radchenko
2022-08-16 16:06                 ` Fraga, Eric
2022-08-16 21:16                   ` Christopher M. Miles
     [not found]                   ` <62fc0be2.050a0220.306c1.e3baSMTPIN_ADDED_BROKEN@mx.google.com>
2022-08-17  9:51                     ` Show a warning/message when loading Org modules requiring external packages (was: :session for Julia in org babel?) Ihor Radchenko
2022-08-17 11:45                       ` Show a warning/message when loading Org modules requiring external packages Fraga, Eric
2022-08-17 21:25                       ` Show a warning/message when loading Org modules requiring external packages (was: :session for Julia in org babel?) Christopher M. Miles
     [not found]                       ` <62fd5dc7.050a0220.96139.b7e7SMTPIN_ADDED_BROKEN@mx.google.com>
2022-08-19  6:02                         ` Ihor Radchenko
2022-08-19 12:58                           ` Christopher M. Miles
2022-08-20  5:56                   ` :session for Julia in org babel? Ihor Radchenko
2022-08-22  9:30                     ` Fraga, Eric
2022-08-22 12:12                       ` Ihor Radchenko
2022-08-17 10:16 ` Timothy
2022-08-17 11:50   ` Fraga, Eric

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ilmsqrjv.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=bill.burdick@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).