Awesome!

On Sun, 12 Mar 2017 at 00:20 Eric Charles <e...@apache.org> wrote:

> I have a hacky implementation that works (I needed it by Monday... (1])
>
> println(s"""%spell %json $j""") displays the json editor with content
> built in spark.
>
> I understand your 2 options. What I have done is a third one which add a
> SPELL enum to the existing ones.
>
> [1]
> https://www.brighttalk.com/webcast/8251/239669/analyse-
> visualize-share-social-network-interactions-w-apache-spark-zeppelin
>
> On 11/03/17 15:10, Park Hoon wrote:
> > That's because InterpreterResult in backend doesn't understand custom
> > display types.
> >
> > -
> > https://github.com/apache/zeppelin/blob/master/zeppelin-
> interpreter/src/main/java/org/apache/zeppelin/interpreter/
> InterpreterOutput.java#L224
> >
> > There are many way to implement it, but i am thinking about
> >
> > - adding `customType` variable to `InterpreterResultMessageOutput`
> class.
> > - or changing the variable `InterpreterResultMessageOutput.type` type
> from
> > `Enum` to `String`
> >
> > Thanks.
> >
> > On Sat, Mar 11, 2017 at 8:34 PM, Eric Charles <e...@apache.org> wrote:
> >
> >> ZEPPELIN-2089 talks about this if I understand well.
> >>
> >> @ParkHoon Were you thinking to InterpreterResult.Type.SPELL?
> >>
> >>
> >>
> >> On 11/03/17 10:23, Eric Charles wrote:
> >>
> >>> My use case is running a spark paragraph with println(s"""%sigma
> >>> $graph""") that is supposed to call my spell and display the graph.
> >>>
> >>> Is there a way to use existing spell module as display systems?
> >>>
> >>> There is in result.controller.js#324
> >>> heliumService.executeSpellAsDisplaySystem(type, data) which makes me
> >>> think there is a way to achieve this, but I don't get there
> >>>
> >>> I tried to define in helium folder the spell as visualization, but this
> >>> does not work.
> >>>
> >>
> >>
> >
>

Reply via email to