override def execute()

in kernel/src/main/scala/org/apache/toree/magic/builtin/ShowTypes.scala [30:43]


  override def execute(code: String): Unit = {
    code match {
      case "on" =>
        printStream.println(s"Types will be printed.")
        KernelOptions.showTypes = true
      case "off" =>
        printStream.println(s"Types will not be printed")
        KernelOptions.showTypes = false
      case "" =>
        printStream.println(s"ShowTypes is currently ${if (KernelOptions.showTypes) "on" else "off"} ")
      case other =>
        printStream.println(s"${other} is not a valid option for the ShowTypes magic.")
    }
  }