gjkerns / ob-julia

36 stars 25 forks source link

ob-julia with Julia v1.0 does not work anymore #13

Open vincent-picaud opened 6 years ago

vincent-picaud commented 6 years ago

In Julia V1.0 the readcsv, writecsv functions do not exist anymore. By consequence, as explained here, ob-julia.el does not work anymore with Julia v1.0

I guess that you will have to modify:

(defvar org-babel-julia-write-object-command "writecsv(\"%s\",%s)")

and

 (format "%s = readcsv(\"%s\")" name file)
    (format "%s = readcsv(\"%s\")"
        name file))))

I take the opportunity to thank you for your ob-julia.el package I use everyday. Best, Vincent Picaud

zot commented 6 years ago

Tried it and it worked, thanks!

zot commented 6 years ago

This breaks building several Julia packages for me. As a workaround-workaround, I moved it to ~/.julia/config/startup-babel.jl. Then I customized Ess Julia's Inferior Julia Args variable to

-e include("$(ENV["HOME"])/.julia/config/startup-babel.jl") -i