Hi Jeff, I'd be interested in getting a Julia engine in Atom, but I would not be so interested in Julia for visualization when, unless I'm mistaken, at that point you can use d3 directly. That would be cool if true. Is it? Can we get the Julia.eval to return a javascript array? Getting Julia and javascript working side by side in the same console would be pretty awesome.
Best regards, Eric Sent from my iPad > On 7 Jan, 2015, at 8:31 am, Jeff Waller <truth...@gmail.com> wrote: > > Oh man, I think there might be a way! > > Inspired by this because you know Atom is essentially node + chromium, I tried > > git clone node-julia > and then > bizarro% cd node-julia/ > > bizarro% HOME=~/.atom-shell-gyp node-gyp rebuild --target=0.19.5 --arch=x64 > --dist-url=https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist > > that 0.19.5 value is critical and I ended up just trying the versions at > random.... > > linked node-julia in > > pwd > /Applications/Atom.app/Contents/Resources/app/node_modules > bizarro% ls -l node-julia > lrwxr-xr-x 1 jeffw staff 32 Jan 6 18:10 node-julia -> > /Users/jeffw/src/atom/node-julia > > > > and then finally within the javascript REPL in Atom > > var julia = require('node-julia'); > undefined > julia.exec('rand',200); > Array[200] > > > and then (bonus) > > julia.eval('using Gadfly') > JRef {getHIndex:function}__proto__: JRef > julia.eval('plot(rand(10)'); > > > that last part didn't work of course but it didn't crash though and maybe > with a little more... A julia engine within Atom. Would that be useful? > I'm not sure what you guys are wanting to do, but maybe some collaboration? > > -Jeff