neo4j-script-procedures icon indicating copy to clipboard operation
neo4j-script-procedures copied to clipboard

Add support for python, R, ruby, js via graalvm-polyglot

Open jexp opened this issue 6 years ago • 0 comments

See github.com/moxious/magnolia.

http://www.graalvm.org/docs/reference-manual/polyglot/

/cc @moxious

// gu install ruby python R 
// groovy PolyTest1.groovy 
@Grab("org.graalvm.sdk:graal-sdk:1.0.0-rc9")

import org.graalvm.polyglot.*

context = Context.newBuilder().allowAllAccess(true).build()
context.eval("js", "print('Hello JavaScript!');")
context.eval("R", "print('Hello R!');");
context.eval("ruby", "puts 'Hello Ruby!'");
context.eval("python", "print('Hello Python!')");

jexp avatar Nov 23 '18 07:11 jexp