Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FRosner opened this issue Sep 23, 2015 · 3 comments
Open

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

FRosner opened this issue Sep 23, 2015 · 3 comments
Assignees

Comments

@FRosner
Copy link
Owner

FRosner commented Sep 23, 2015

Problem

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

Solution

  • Server implementing transformation of servable case class to Chart magic case class. We might need to change the way the Chart magic classes are defined to make them more general. - @Gerrrr, @FRosner, @andypetrella)
  • JS implementation to plug into Spark-Notebook front-end (webworkers, etc.) - @Gerrrr
@FRosner FRosner modified the milestones: 3.1.0, Spark-Notebook Integration Sep 23, 2015
@FRosner FRosner self-assigned this Sep 23, 2015
@FRosner FRosner changed the title Spark-Notebook Glue Code Prototype SUB #255: Spark-Notebook Glue Code Prototype Sep 23, 2015
@andypetrella
Copy link

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

@FRosner
Copy link
Owner Author

FRosner commented Sep 30, 2015

Roadmap

  • We give webworkers a try, reactivity is not a must for now
  • Later, we might want to have javascript context to export a function as JS snippet string
  • Implement a DDS server that returns a renderer (or renderable by implicit conversion) to the notebook

Notes

  • JsWorld is center of reactivity for JS
  • Connection is reactivity for Scala
  • Renderer is very basic and the only thing that would be required to render something in the notebook

@andypetrella
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants