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 16:06:37 +0000	[thread overview]
Message-ID: <87k078w4tu.fsf@ucl.ac.uk> (raw)
In-Reply-To: <87mtc41fzt.fsf@localhost> (Ihor Radchenko's message of "Tue, 16 Aug 2022 21:21:10 +0800")

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

On Tuesday, 16 Aug 2022 at 21:21, Ihor Radchenko wrote:
> Can you also update [Worg]

I will do so, maybe tomorrow.  I assume that's okay as it's a separate
repository?  and as I do not have submit access, I'll post a patch here,
if that's okay?

> This will set the variable globally. You may want setq-local instead.

I've put the setting into the (let ...) and it seems to work just fine.
New patch attached.

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: 1404 bytes --]

From dabcbd8005d5323d8a784f031b7fc5d1523b7b6d Mon Sep 17 00:00:00 2001
From: Eric S Fraga <e.fraga@ucl.ac.uk>
Date: Tue, 16 Aug 2022 17:03:33 +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 | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lisp/ob-julia.el b/lisp/ob-julia.el
index 7f25fafad..6b2f59354 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)
@@ -281,7 +284,8 @@ last statement in BODY, as elisp."
     (value
      (with-temp-buffer
        (insert (org-babel-chomp body))
-       (let ((ess-local-process-name
+       (let ((ess-local-customize-alist t)
+             (ess-local-process-name
 	      (process-name (get-buffer-process session)))
 	     (ess-eval-visibly-p nil))
 	 (ess-eval-buffer nil)))
-- 
2.30.2


  reply	other threads:[~2022-08-16 16:12 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
2022-08-16 13:21               ` Ihor Radchenko
2022-08-16 16:06                 ` Fraga, Eric [this message]
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=87k078w4tu.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).