FRosner / spawncamping-dds

Data-Driven Spark allows quick data exploration based on Apache Spark.
Other
28 stars 15 forks source link

SUB #255: Spark-Notebook Glue Code Prototype #254

Open FRosner opened 9 years ago

FRosner commented 9 years ago

Problem

For the first prototype of Spark-Notebook-DDS-Integration we need to write some glue code.

Solution

andypetrella commented 9 years ago

ah this is the one I guess @FRosner :-P

FRosner commented 9 years ago

Roadmap

Notes

andypetrella commented 9 years ago

sketch on how snippet can be used:

:javascript[myFunction]
function() {
  //worker....

  container.append()

}

→ REPL creates a val myFunction = s""" ... """

Use it as snippet

[...]
  override val snippets = List(s"""|{
                                   |  "f": $myFunction, 
                                   |  "o": {
                                   |    "category": "$category",
                                   |    "value": "$value",
                                   |    "date": "$date",
                                   |    "date_format": "$dateFormat"
                                   |  }
                                   |}
                                  """.stripMargin)