Skip to content
Snippets Groups Projects
Commit be9c5e2e authored by dgelessus's avatar dgelessus
Browse files

Disable redirection of stdout/log messages to notebooks

parent 260e0291
Branches
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ configurations.all { ...@@ -39,7 +39,7 @@ configurations.all {
dependencies { dependencies {
compile(group: "de.hhu.stups", name: "de.prob2.kernel", version: "3.2.10-SNAPSHOT", changing: true) compile(group: "de.hhu.stups", name: "de.prob2.kernel", version: "3.2.10-SNAPSHOT", changing: true)
compile(group: "io.github.spencerpark", name: "jupyter-jvm-basekernel", version: "2.1.1-SNAPSHOT", changing: true) compile(group: "io.github.spencerpark", name: "jupyter-jvm-basekernel", version: "2.2.0-SNAPSHOT", changing: true)
compile(group: "org.jetbrains", name: "annotations", version: "16.0.1") compile(group: "org.jetbrains", name: "annotations", version: "16.0.1")
compile(group: "se.sawano.java", name: "alphanumeric-comparator", version: "1.4.1") compile(group: "se.sawano.java", name: "alphanumeric-comparator", version: "1.4.1")
} }
......
...@@ -60,6 +60,8 @@ public final class ProBKernel extends BaseKernel { ...@@ -60,6 +60,8 @@ public final class ProBKernel extends BaseKernel {
private ProBKernel(final @NotNull Injector injector, final @NotNull ClassicalBFactory classicalBFactory, final @NotNull AnimationSelector animationSelector) { private ProBKernel(final @NotNull Injector injector, final @NotNull ClassicalBFactory classicalBFactory, final @NotNull AnimationSelector animationSelector) {
super(); super();
this.setShouldReplaceStdStreams(false);
this.animationSelector = animationSelector; this.animationSelector = animationSelector;
this.commands = new HashMap<>(); this.commands = new HashMap<>();
......
...@@ -37,7 +37,7 @@ public final class GroovyCommand implements Command { ...@@ -37,7 +37,7 @@ public final class GroovyCommand implements Command {
@Override @Override
public @NotNull DisplayData run(final @NotNull ProBKernel kernel, final @NotNull String argString) { public @NotNull DisplayData run(final @NotNull ProBKernel kernel, final @NotNull String argString) {
this.groovyScriptEngine.put("__console", System.out); this.groovyScriptEngine.put("__console", kernel.getIO().out);
final Object result; final Object result;
try { try {
result = this.groovyScriptEngine.eval(argString); result = this.groovyScriptEngine.eval(argString);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment