[ESS] executing Julia from org: error in ess-eval-region
Stephen Eglen
@je30 @end|ng |rom c@m@@c@uk
Mon Aug 15 10:46:14 CEST 2022
Thanks Eric. I'm afraid I've not been able to get as far as you yet...
1. julia-repl is not part of ESS... are you loading ESS in this?
2. I tried something simpler...
#+begin_src julia
1 + 2
#+end_src
without a session. I needed to add (julia . t) to the
org-babel-load-languages but then when I C-c C-c in that block I see:
executing Julia code block...
Wrote /var/folders/dk/h27sxrrj3mg6myd8ht0ym9300000gn/T/babel-EjcUNR/ob-input-vzlgW1
Code block produced no output.
and I don't get any output, even without the :session tag. Does the
code chunk work for you, without :session?
I'm rusty with the details of org-mode, is there any other setup needed?
Stephen
On Mon, Aug 15 2022, Eric S Fraga via ESS-help wrote:
> On Sunday, 14 Aug 2022 at 21:34, Stephen Eglen via ESS-help wrote:
>> hi Eric,
>>
>> can you send a minimal .org file that demonstrates the problem?
>
> I notice that attachments are stripped in this group/list so here is the
> code directly:
>
> #+title: Trying Julia session
>
> Load and configure Julia mode and repl. Both from MELPA up to date.
> #+begin_src emacs-lisp
> (require 'julia-mode)
> ;; note that the first variable is also set in esf-org.org
> (setq inferior-julia-program "/home/ucecesf/pd/julia/bin/julia"
> julia-max-block-lookback 20000 ; suggested on julia usage list
> julia-program "/home/ucecesf/pd/julia/bin/julia"
> julia-repl-executable "/home/ucecesf/pd/julia/bin/julia")
> (require 'julia-repl)
> #+end_src
>
> #+results:
> : julia-repl
>
> Try executing Julia code in a session:
>
> #+begin_src julia :session
> x = [1, 2]
> #+end_src
More information about the ESS-help
mailing list