Github user chipsenkbeil commented on a diff in the pull request:

    https://github.com/apache/incubator-toree/pull/104#discussion_r121753548
  
    --- Diff: 
scala-interpreter/src/main/scala/org/apache/toree/kernel/interpreter/scala/ScalaInterpreter.scala
 ---
    @@ -18,30 +18,34 @@
     package org.apache.toree.kernel.interpreter.scala
     
     import java.io.ByteArrayOutputStream
    -import java.net.{URL, URLClassLoader}
    -import java.nio.charset.Charset
     import java.util.concurrent.ExecutionException
    -
     import com.typesafe.config.{Config, ConfigFactory}
    +import jupyter.Displayers
     import org.apache.spark.SparkContext
     import org.apache.spark.sql.SparkSession
     import org.apache.spark.repl.Main
    -
     import org.apache.toree.interpreter._
    -import org.apache.toree.kernel.api.{KernelLike, KernelOptions}
    +import org.apache.toree.kernel.api.KernelLike
     import org.apache.toree.utils.TaskManager
     import org.slf4j.LoggerFactory
     import org.apache.toree.kernel.BuildInfo
    -
    +import org.apache.toree.kernel.protocol.v5.MIMEType
     import scala.annotation.tailrec
    +import scala.collection.JavaConverters._
     import scala.concurrent.{Await, Future}
     import scala.language.reflectiveCalls
     import scala.tools.nsc.Settings
     import scala.tools.nsc.interpreter.{IR, OutputStream}
     import scala.tools.nsc.util.ClassPath
    -import scala.util.{Try => UtilTry}
    +import scala.util.matching.Regex
     
     class ScalaInterpreter(private val config:Config = ConfigFactory.load) 
extends Interpreter with ScalaInterpreterSpecific {
    +  import ScalaInterpreter._
    +
    +  ScalaDisplayers.ensureLoaded()
    --- End diff --
    
    Why are we calling this if it does nothing?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to