in kernel/src/main/scala/org/apache/toree/magic/builtin/ShowOutput.scala [26:39]
override def execute(code: String): Unit = {
code match {
case "on" =>
printStream.println(s"Console output WILL be shown.")
KernelOptions.showOutput = true
case "off" =>
printStream.println(s"Console output will NOT be shown.")
KernelOptions.showOutput = false
case "" =>
printStream.println(s"Console output display is currently ${if (KernelOptions.showOutput) "on" else "off"}.")
case other =>
printStream.println(s"${other} is not a valid option for the ShowOutput magic.")
}
}