Search in sources :

Example 1 with ScalaEvaluator

use of com.twosigma.beakerx.scala.evaluator.ScalaEvaluator 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)1 KernelSocketsFactoryImpl (com.twosigma.beakerx.kernel.KernelSocketsFactoryImpl)1 ScalaEvaluator (com.twosigma.beakerx.scala.evaluator.ScalaEvaluator)1