Search in sources :

Example 1 with KernelConfigurationFile

use of com.twosigma.beakerx.kernel.KernelConfigurationFile in project beakerx by twosigma.

the class Clojure method main.

public static void main(final String[] args) throws InterruptedException, IOException {
    KernelRunner.run(() -> {
        String id = uuid();
        KernelSocketsFactoryImpl kernelSocketsFactory = new KernelSocketsFactoryImpl(new KernelConfigurationFile(args));
        ClojureEvaluator evaluator = new ClojureEvaluator(id, id, getKernelParameters());
        return new Clojure(id, evaluator, kernelSocketsFactory);
    });
}
Also used : ClojureEvaluator(com.twosigma.beakerx.clojure.evaluator.ClojureEvaluator) KernelConfigurationFile(com.twosigma.beakerx.kernel.KernelConfigurationFile) KernelSocketsFactoryImpl(com.twosigma.beakerx.kernel.KernelSocketsFactoryImpl)

Example 2 with KernelConfigurationFile

use of com.twosigma.beakerx.kernel.KernelConfigurationFile in project beakerx by twosigma.

the class Java method main.

public static void main(final String[] args) throws InterruptedException, IOException {
    KernelRunner.run(() -> {
        String id = uuid();
        JavaEvaluator e = new JavaEvaluator(id, id, getKernelParameters());
        KernelSocketsFactoryImpl kernelSocketsFactory = new KernelSocketsFactoryImpl(new KernelConfigurationFile(args));
        return new Java(id, e, kernelSocketsFactory);
    });
}
Also used : KernelConfigurationFile(com.twosigma.beakerx.kernel.KernelConfigurationFile) JavaEvaluator(com.twosigma.beakerx.javash.evaluator.JavaEvaluator) KernelSocketsFactoryImpl(com.twosigma.beakerx.kernel.KernelSocketsFactoryImpl)

Example 3 with KernelConfigurationFile

use of com.twosigma.beakerx.kernel.KernelConfigurationFile in project beakerx by twosigma.

the class Groovy method main.

public static void main(final String[] args) throws InterruptedException, IOException {
    KernelRunner.run(() -> {
        String id = uuid();
        KernelSocketsFactoryImpl kernelSocketsFactory = new KernelSocketsFactoryImpl(new KernelConfigurationFile(args));
        GroovyEvaluator evaluator = new GroovyEvaluator(id, id, getEvaluatorParameters());
        return new Groovy(id, evaluator, kernelSocketsFactory);
    });
}
Also used : GroovyEvaluator(com.twosigma.beakerx.groovy.evaluator.GroovyEvaluator) KernelConfigurationFile(com.twosigma.beakerx.kernel.KernelConfigurationFile) KernelSocketsFactoryImpl(com.twosigma.beakerx.kernel.KernelSocketsFactoryImpl)

Example 4 with KernelConfigurationFile

use of com.twosigma.beakerx.kernel.KernelConfigurationFile in project beakerx by twosigma.

the class Kotlin method main.

public static void main(final String[] args) throws InterruptedException, IOException {
    KernelRunner.run(() -> {
        String id = uuid();
        KotlinEvaluator e = new KotlinEvaluator(id, id, getKernelParameters());
        KernelSocketsFactoryImpl kernelSocketsFactory = new KernelSocketsFactoryImpl(new KernelConfigurationFile(args));
        return new Kotlin(id, e, kernelSocketsFactory);
    });
}
Also used : KernelConfigurationFile(com.twosigma.beakerx.kernel.KernelConfigurationFile) KotlinEvaluator(com.twosigma.beakerx.kotlin.evaluator.KotlinEvaluator) KernelSocketsFactoryImpl(com.twosigma.beakerx.kernel.KernelSocketsFactoryImpl)

Example 5 with KernelConfigurationFile

use of com.twosigma.beakerx.kernel.KernelConfigurationFile in project beakerx by twosigma.

the class Scala method main.

public static void main(final String[] args) throws InterruptedException, IOException {
    KernelRunner.run(() -> {
        String id = uuid();
        ScalaEvaluator se = new ScalaEvaluator(id, id, null, // TODO check what to put, need for autotranslation
        getKernelParameters());
        // js.setupAutoTranslation(); -- uncomment
        KernelSocketsFactoryImpl kernelSocketsFactory = new KernelSocketsFactoryImpl(new KernelConfigurationFile(args));
        return new Scala(id, se, kernelSocketsFactory);
    });
}
Also used : KernelConfigurationFile(com.twosigma.beakerx.kernel.KernelConfigurationFile) ScalaEvaluator(com.twosigma.beakerx.scala.evaluator.ScalaEvaluator) KernelSocketsFactoryImpl(com.twosigma.beakerx.kernel.KernelSocketsFactoryImpl)

Aggregations

KernelConfigurationFile (com.twosigma.beakerx.kernel.KernelConfigurationFile)6 KernelSocketsFactoryImpl (com.twosigma.beakerx.kernel.KernelSocketsFactoryImpl)6 ClojureEvaluator (com.twosigma.beakerx.clojure.evaluator.ClojureEvaluator)1 GroovyEvaluator (com.twosigma.beakerx.groovy.evaluator.GroovyEvaluator)1 JavaEvaluator (com.twosigma.beakerx.javash.evaluator.JavaEvaluator)1 KotlinEvaluator (com.twosigma.beakerx.kotlin.evaluator.KotlinEvaluator)1 ScalaEvaluator (com.twosigma.beakerx.scala.evaluator.ScalaEvaluator)1 SQLEvaluator (com.twosigma.beakerx.sql.evaluator.SQLEvaluator)1