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);
});
}
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);
});
}
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);
});
}
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);
});
}
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);
});
}
Aggregations