Re: :session for Julia in org babel?

2022-08-22 Thread Ihor Radchenko
"Fraga, Eric" writes: > On Saturday, 20 Aug 2022 at 13:56, Ihor Radchenko wrote: >> Sure. You can submit the patch here, and I will apply it. > > Here it is. Thank you. Thanks! Applied onto master via 56fd0591. https://git.sr.ht/~bzg/worg/commit/56fd0591eed333771ddf7ab522bf8da2c2b4bd7b --

Re: :session for Julia in org babel?

2022-08-22 Thread Fraga, Eric
On Saturday, 20 Aug 2022 at 13:56, Ihor Radchenko wrote: > Sure. You can submit the patch here, and I will apply it. Here it is. Thank you. -- : Eric S Fraga, with org release_9.5.4-737-gd3a9c4 in Emacs 29.0.50 From 2564c84b41de55d478ba249fa932c40ac62fe510 Mon Sep 17 00:00:00 2001 From: Eric S

Re: :session for Julia in org babel?

2022-08-19 Thread Ihor Radchenko
"Fraga, Eric" writes: > 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? Sure. You can

Re: Show a warning/message when loading Org modules requiring external packages (was: :session for Julia in org babel?)

2022-08-19 Thread Christopher M. Miles
ia-mode and ESS > (https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-julia.html) Oh, I misunderstand your meaning. > Now I see that you were referring to the actual Julia packages. Those > may be caught by Julia session code (org-babel-prep-session:julia) and > then a warn

Re: Show a warning/message when loading Org modules requiring external packages (was: :session for Julia in org babel?)

2022-08-19 Thread Ihor Radchenko
b-doc-julia.html) Now I see that you were referring to the actual Julia packages. Those may be caught by Julia session code (org-babel-prep-session:julia) and then a warning may be displayed. -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Supp

Re: Show a warning/message when loading Org modules requiring external packages (was: :session for Julia in org babel?)

2022-08-17 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> What about write a elisp function to automatic the installation of those >> required two Julia packages? If not, at least raise a warning for user >> to install those two packages after detection not exist. WDYT? > > Installation is

Re: :session for Julia in org babel?

2022-08-17 Thread Fraga, Eric
On Wednesday, 17 Aug 2022 at 18:16, Timothy wrote: > The ob-julia code is in need of an overhaul, and it’s on my todo list > but I have no idea when I’ll get to it. Stephen Eglen has suggested the same and also that maybe a few of us get "together" to discuss what is needed etc. I have copied

Re: :session for Julia in org babel?

2022-08-17 Thread Timothy
Hi Eric and Ihor, The ob-julia code is in need of an overhaul, and it’s on my todo list but I have no idea when I’ll get to it. In the meantime, I think (which Eric, I think you’ve tried?) should be better to use. All the best, Timothy

Show a warning/message when loading Org modules requiring external packages (was: :session for Julia in org babel?)

2022-08-17 Thread Ihor Radchenko
"Christopher M. Miles" writes: > What about write a elisp function to automatic the installation of those > required two Julia packages? If not, at least raise a warning for user > to install those two packages after detection not exist. WDYT? Installation is not a good idea because there are

Re: :session for Julia in org babel?

2022-08-16 Thread Christopher M. Miles
"Fraga, Eric" writes: > 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

Re: :session for Julia in org babel?

2022-08-16 Thread Fraga, Eric
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

Re: :session for Julia in org babel?

2022-08-16 Thread Fraga, Eric
15637e Mon Sep 17 00:00:00 2001 From: Eric S Fraga 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 comm

Re: :session for Julia in org babel?

2022-08-16 Thread Ihor Radchenko
"Fraga, Eric" writes: >> 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

Re: :session for Julia in org babel?

2022-08-10 Thread Fraga, Eric
On Wednesday, 10 Aug 2022 at 15:10, Ihor Radchenko wrote: > Please report to ESS devs. Will do. Thanks. -- : Eric S Fraga, with org release_9.5.4-720-g4db67d in Emacs 29.0.50

Re: :session for Julia in org babel?

2022-08-10 Thread Ihor Radchenko
"Fraga, Eric" writes: > Debugger entered--Lisp error: (wrong-type-argument symbolp > ((inferior-ess-primary-prompt . "\\w*> ") (inferior-ess-secondary-prompt) > (inferior-ess-prompt . "\\w*> ") (ess-local-customize-alist . > ess-julia-customize-alist) (inferior-ess-program .

Re: :session for Julia in org babel?

2022-08-09 Thread Fraga, Eric
rn . ess-r-function-pattern) (ess-object-name-db-file . "ess-jl-namedb.el") (ess-smart-operators . ess-r-smart-operators) (inferior-ess-exit-command . "exit()\n") (inferior-ess-language-start) (ess-STERM . "iESS") (ess-editor . ess-r-editor) (ess-pager . ess-r-pa

Re: :session for Julia in org babel?

2022-08-09 Thread Bill Burdick
ss-function-pattern > . ess-r-function-pattern) (ess-object-name-db-file . "ess-jl-namedb.el") > (ess-smart-operators . ess-r-smart-operators) (inferior-ess-exit-command . > "exit()\n") (inferior-ess-language-start) (ess-STERM . "iESS") (ess-editor >

Re: :session for Julia in org babel?

2022-08-09 Thread Ihor Radchenko
Bill Burdick writes: > OK, now I get this: > > ess-eval-buffer: Wrong type argument: symbolp, > ((inferior-ess-primary-prompt . "\\w*> ") (inferior-ess-secondary-prompt) > (inferior-ess-prompt . "\\w*> ") (ess-local-customize-alist . > ess-julia-customize-alist) (inferior-ess-program .

Re: :session for Julia in org babel?

2022-08-08 Thread Fraga, Eric
> OK, now I get this: > ess-eval-buffer: Wrong type argument: symbolp, [...] > (ess-error-regexp-alist . ess-julia-error-regexp-alist) ...) Yeah, pretty much what I get as well. Thanks for confirming that it's not my configuration that causes this! -- : Eric S Fraga, with org

Re: :session for Julia in org babel?

2022-08-08 Thread Bill Burdick
OK, now I get this: ess-eval-buffer: Wrong type argument: symbolp, ((inferior-ess-primary-prompt . "\\w*> ") (inferior-ess-secondary-prompt) (inferior-ess-prompt . "\\w*> ") (ess-local-customize-alist . ess-julia-customize-alist) (inferior-ess-program . inferior-julia-program) (ess-load-command .

Re: :session for Julia in org babel?

2022-08-08 Thread Fraga, Eric
Hi Bill, thank you for the quick response. On Monday, 8 Aug 2022 at 11:49, Bill Burdick wrote: > Julia works in org without sessions for me but with sessions I get this error: > > org-babel-execute:julia: Cannot open load file: No such file or directory, ess Yeah, it does require the ess

Re: :session for Julia in org babel?

2022-08-08 Thread Bill Burdick
Julia works in org without sessions for me but with sessions I get this error: org-babel-execute:julia: Cannot open load file: No such file or directory, ess -- Bill On Mon, Aug 8, 2022 at 11:22 AM Fraga, Eric wrote: > Hello all, > > has anybody tried using sessions for Julia in org? > >

:session for Julia in org babel?

2022-08-08 Thread Fraga, Eric
Hello all, has anybody tried using sessions for Julia in org? I'm asking because I've never used sessions (for any language) before and it's failing with obscure ess- related errors so I just want to confirm that Julia should (or should not) work with sessions before I spend some time debugging.