Skip to content

Commit

Permalink
#7491: init NamespaceClient (#7527)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslawmalekcodete authored and scottdraves committed Jun 14, 2018
1 parent e6d9558 commit 0838ac0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import clojure.lang.LazySeq;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.twosigma.beakerx.DisplayerDataMapper;
import com.twosigma.beakerx.NamespaceClient;
import com.twosigma.beakerx.clojure.evaluator.ClojureEvaluator;
import com.twosigma.beakerx.clojure.handlers.ClojureCommOpenHandler;
import com.twosigma.beakerx.clojure.handlers.ClojureKernelInfoHandler;
Expand Down Expand Up @@ -78,10 +79,15 @@ public static void main(final String[] args) throws InterruptedException, IOExce
KernelSocketsFactoryImpl kernelSocketsFactory = new KernelSocketsFactoryImpl(
new KernelConfigurationFile(args));
ClojureEvaluator evaluator = new ClojureEvaluator(id, id, getKernelParameters());
initNamespaceClient(id);
return new Clojure(id, evaluator, kernelSocketsFactory);
});
}

private static void initNamespaceClient(String id) {
NamespaceClient.getBeaker(id);
}

@Override
protected void configureMagicCommands() {
super.configureMagicCommands();
Expand Down

0 comments on commit 0838ac0

Please sign in to comment.