com.knockdata.spark.highcharts.ZeppelinContextHolder.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spark-highcharts Show documentation
Show all versions of spark-highcharts Show documentation
Provide Highcharts Support for Spark either in Zepplin or spark-shell
package com.knockdata.spark.highcharts
import org.apache.zeppelin.spark.ZeppelinContext
import scala.concurrent._
import scala.concurrent.ExecutionContext.Implicits._
class ZeppelinContextHolder(z: ZeppelinContext) {
def put(name: String, value: AnyRef) = z.put(name, value)
def run(paragraphId: String): Unit = {
Future(z.run(paragraphId))
}
}