Hi

Interestingly I was having something similar on my plate this afternoon.
Could we use z.angularBind for that ?

I was trying to use scala & spark to clean some data (%spark interpreter)
that I then would like to display using d3 (not %sql) in the angular
interpreter (using d3.csv for example).

Would that be possible?

Cheers
Guillaume

On 29 October 2015 at 16:40, moon soo Lee <[email protected]> wrote:

> Hi,
>
> If your custom interpreter is in the same interpreter group 'spark', you
> can exchange data between SparkInterpreter and your custom interpreter.
> (because of interpreters in the same group runs in the same process)
>
> But if your custom interpreter is in the different interpreter group, then
> only way at the moment is persist data from SparkInterpreter and read data
> in your custom interpreter.
>
> Thanks,
> moon
>
>
> On Thu, Oct 29, 2015 at 11:07 AM Miyuru Dayarathna <[email protected]>
> wrote:
>
>> Hi,
>>
>> I am trying to access the Spark data frame defined in the Zeppelin
>> Tutorial notebook from a separate paragraph using a custom written Zeppelin
>> Interpreter. To make it more clear given below is the code snippet from
>> "Load data into table" paragraph of the Zeppelin Tutorial notebook. When
>> this is run the data frame called "bank" gets initialized in a Spark
>> Interpreter process. I want to use the bank data frame from my custom
>> Zeppelin interpreter. Can you please let me know how to do this? Is there a
>> Zeppelin API which provides me the access to such variables running in a
>> different Interpreter than where they were instantiated?
>>
>> //----------------------------------
>>
>> val bank = bankText.map(s => s.split(";")).filter(s => s(0) !=
>> "\"age\"").map(
>>     s => Bank(s(0).toInt,
>>             s(1).replaceAll("\"", ""),
>>             s(2).replaceAll("\"", ""),
>>             s(3).replaceAll("\"", ""),
>>             s(5).replaceAll("\"", "").toInt
>>         )
>> ).toDF()
>>
>> bank.registerTempTable("bank")
>>
>> //----------------------------------
>>
>> Thanks,
>> Miyuru
>>
>


-- 
PGP KeyID: 2048R/EA31CFC9  subkeys.pgp.net

Reply via email to