All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jove.IHaskellZMQKernel.scala Maven / Gradle / Ivy

package jove

import java.io.File
import scala.sys.process._
import jove.helpers.zmq.ZMQKernel

object IHaskellZMQKernel {
  def apply(ihaskellPath: String): ZMQKernel = new ZMQKernel(PythonZMQKernel.iPythonConnectionDir) {
    override def preStart(connectionFile: File): Unit = {
      val cmd = List(
        ihaskellPath,
        "kernel",
        connectionFile.getAbsolutePath
      )

      logger debug s"Running command $cmd"
      cmd.run()
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy