Hi Thanks for the hint. But z.run() is not working inside %angular paragraph in my notebook. Any idea?
Regards Bala On 17-Mar-2016 11:39 pm, "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> > 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 >> >