Configure Display of null

The null object in the JVM is by default displayed as null. But if you prefer to show no result at all, you can configure that as follows:


In [1]:
com.twosigma.beakerx.kernel.Kernel.showNullExecutionResult


Out[1]:
true

In [9]:
com.twosigma.beakerx.kernel.Kernel.showNullExecutionResult = true;
String seeNullString = null;
seeNullString


Out[9]:
null

In [6]:
com.twosigma.beakerx.kernel.Kernel.showNullExecutionResult = false;
String noNullString = null;
noNullString

In [ ]: