Hi

In a scénario for which I would not know which paragraph to refresh (run),
would there be a way to register paragraphs to be refreshed and then
trigger a refresh for all of them.

May be I need to implement that? Or would that be a generic requirement

Cheers

On Thursday, 17 March 2016, moon soo Lee <m...@apache.org> wrote:

> Hi Bala,
>
> z.run() accept both integer index of paragraph (starts from 0) [1] or
> paragraph id [2].
>
> So you can do something like
>
> %spark
> (2 to 5).foreach{ idx => z.run(idx) }
>
> or
>
> %spark
> import collection.JavaConversions._
> z.listParagraphs.foreach(paragraphId=> z.run(paragraphId))
>
> Hope this helps.
>
> Thanks,
> moon
>
> [1]
> https://github.com/apache/incubator-zeppelin/blob/branch-0.5.6/spark/src/main/java/org/apache/zeppelin/spark/ZeppelinContext.java#L398
> [2]
> https://github.com/apache/incubator-zeppelin/blob/branch-0.5.6/spark/src/main/java/org/apache/zeppelin/spark/ZeppelinContext.java#L370
>
>
>
> On Thu, Mar 17, 2016 at 2:55 AM Balachandar R.A. <balachandar...@gmail.com
> <javascript:_e(%7B%7D,'cvml','balachandar...@gmail.com');>> wrote:
>
>> Hello
>>
>> Can we use z.run() to run a set of paragraphs? In my notebook, I have
>> spark and angular paragraphs and I would fire running of, lets say, 5
>> paragraphs, preferably, simultaneously. These paragraphs launch various
>> visualization widgets (bar charts, leaflet map, and cytoscape network
>> graphs). So, paragraph A creates a necessary data structures from which
>> these visualizations can be created, and run all the other paragraphs.
>> Please let me know how can I achieve this?
>>
>> regards
>> Bala
>>
>

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

Reply via email to