Search in sources :

Example 1 with JavaEvaluator

use of com.twosigma.beakerx.javash.evaluator.JavaEvaluator 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 2 with JavaEvaluator

use of com.twosigma.beakerx.javash.evaluator.JavaEvaluator in project beakerx by twosigma.

the class JavaEvaluatorAutocompleteImportTest method setUpClass.

@BeforeClass
public static void setUpClass() throws Exception {
    HashMap<String, Object> map = new HashMap<>();
    map.put(IMPORTS, new JavaDefaultVariables().getImports());
    EvaluatorParameters kernelParameters = new EvaluatorParameters(map);
    groovyEvaluator = new JavaEvaluator("id", "sid", cellExecutor(), getTestTempFolderFactory(), kernelParameters);
}
Also used : EvaluatorParameters(com.twosigma.beakerx.kernel.EvaluatorParameters) HashMap(java.util.HashMap) JavaDefaultVariables(com.twosigma.beakerx.javash.kernel.JavaDefaultVariables) JavaEvaluator(com.twosigma.beakerx.javash.evaluator.JavaEvaluator) BeforeClass(org.junit.BeforeClass)

Aggregations

JavaEvaluator (com.twosigma.beakerx.javash.evaluator.JavaEvaluator)2 JavaDefaultVariables (com.twosigma.beakerx.javash.kernel.JavaDefaultVariables)1 EvaluatorParameters (com.twosigma.beakerx.kernel.EvaluatorParameters)1 KernelConfigurationFile (com.twosigma.beakerx.kernel.KernelConfigurationFile)1 KernelSocketsFactoryImpl (com.twosigma.beakerx.kernel.KernelSocketsFactoryImpl)1 HashMap (java.util.HashMap)1 BeforeClass (org.junit.BeforeClass)1