Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run a Julia script in Atom

I just found the Atom text editor on OSX.

When I try to run a Julia script in Atom, like in Juno, I get a path error:

enter image description here

Changing my path by editing ~/.profile doesn't work... How can I get this to run?

like image 719
snd Avatar asked Jul 15 '15 08:07

snd


1 Answers

Go to Atom --> Open Your Init Script

enter image description here

There, in the init.coffee file, put this:

process.env.PATH = ["/Applications/Julia-0.4.0-dev-a9e0dd2fb2.app/Contents/Resources/julia/bin",
 process.env.PATH].join(":")

and it should run when you do + i.

like image 83
snd Avatar answered Oct 12 '22 11:10

snd