%spark
///////////////////////////////////////////////////////////////////////////////////////////////////////////
// this snippet needs to be injected into first cell of a Zeppelin note that is created from a Scala
// databricks notebook with 'displayHTML' --- this renders html in the zeppelin note coming from databricks
///////////////////////////////////////////////////////////////////////////////////////////////////////////
def displayHTML(htmlInput:String): Unit = {
println("%html")
println(htmlInput)
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////
%spark
///////////////////////////////////////////////////////////////////////////////////////////////////////////
// this snippet needs to be injected into first cell of a Zeppelin note that is created from a Scala
// databricks notebook with 'displayHTML' --- this renders html in the zeppelin note coming from databricks
///////////////////////////////////////////////////////////////////////////////////////////////////////////
def displayHTML(htmlInput:String): Unit = {
println("%html")
println(htmlInput)
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////