in kernel/src/main/scala/org/apache/toree/magic/builtin/Truncation.scala [30:43]
override def execute(code: String): Unit = {
code match {
case "on" =>
printStream.println(s"Output WILL be truncated.")
KernelOptions.noTruncation = false
case "off" =>
printStream.println(s"Output will NOT be truncated")
KernelOptions.noTruncation = true
case "" =>
printStream.println(s"Truncation is currently ${if (KernelOptions.noTruncation) "off" else "on"} ")
case other =>
printStream.println(s"${other} is not a valid option for the NoTruncation magic.")
}
}