Re: Adding Angular API to non-Spark interpreters

2016-12-10 Thread DuyHai Doan
All interpreters can leverage the AngularObjectRegistry. The Cassandra interpreter does this here: https://github.com/apache/zeppelin/blob/master/cassandra/src/main/scala/org/apache/zeppelin/cassandra/InterpreterLogic.scala#L316-L356 On Fri, Dec 9, 2016 at 10:45 PM, Goodman, Alexander (398K) <

Re: Adding Angular API to non-Spark interpreters

2016-12-09 Thread Goodman, Alexander (398K)
Hi Randy, The main thing you are probably looking for is the AngularObjectRegistry class (https://github.com/apache/zeppelin/blob/master/zeppelin-int erpreter/src/main/java/org/apache/zeppelin/display/AngularOb jectRegistry.java). One of the fields of InterpreterContext is an instance of this

Re: Adding Angular API to non-Spark interpreters

2016-12-09 Thread Randy Gelhausen
I created https://issues.apache.org/jira/browse/ZEPPELIN-1782 with additional detail for this feature request. I looked into the InterpreterContext classes, but am not sure how to implement this. Any suggestions from others? Thanks in advance, -Randy On 2016-11-24 18:31 (-0500), Randy Gelhausen

Adding Angular API to non-Spark interpreters

2016-11-24 Thread Randy Gelhausen
I often need to visualize data in other ways than supported by the out of the box charts. I can do this with Angular notes and custom JavaScript, but Spark is the only interpreter with capability to set Angular variables. Could it be possible to automatically expose all interpreter results as