{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Configure Display of `null`\n", "\n", "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:" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "true" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "com.twosigma.beakerx.kernel.Kernel.showNullExecutionResult" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "null" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "com.twosigma.beakerx.kernel.Kernel.showNullExecutionResult = true;\n", "String seeNullString = null;\n", "seeNullString" ] }, { "cell_type": "code", "execution_count": 6, "metadata": { "collapsed": true }, "outputs": [], "source": [ "com.twosigma.beakerx.kernel.Kernel.showNullExecutionResult = false;\n", "String noNullString = null;\n", "noNullString" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Groovy", "language": "groovy", "name": "groovy" }, "language_info": { "codemirror_mode": "groovy", "file_extension": ".groovy", "mimetype": "", "name": "Groovy", "nbconverter_exporter": "", "version": "2.4.3" } }, "nbformat": 4, "nbformat_minor": 2 }