TiloWiklund / pinot

Other
3 stars 0 forks source link

inject html displays for zeppelin note coming from databricks scala notebook with displayHTML function #5

Open lamastex opened 6 years ago

lamastex commented 6 years ago

%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) } ///////////////////////////////////////////////////////////////////////////////////////////////////////////

TiloWiklund commented 6 years ago

I think the best way to do this is to write a small utility that adds cells to a notebook (which can then be run separately on pinot's output). pinot does not currently attempt to define or track anything like an "origin format" of a notebook.

lamastex commented 6 years ago

Yes, this is a good idea. Would you be able to do such an injection for zeppelin notebooks coming from databricks? Then we will be done with the databricks to zeppelin pipeline for notebooks. We may need a similar injection for jupyter ipynb notebooks from databricks too.