Re: use of z.run

2016-03-19 Thread Balachandar R.A.
Hello, Thanks for discussing this issue. Yes, I would like to run a angular paragraph from another angular paragraph. Now, I have explored a bit about angularWatch and looked very promising. I have more or less achieved what I wanted to. But still it is not 100%. I have this piece of code in one

Re: use of z.run

2016-03-19 Thread Balachandar R.A.
Hi moon, Tried your hint with no luck :-( Thanks anyway regards Bala On 18 March 2016 at 22:26, moon soo Lee wrote: > Hi, > > Could you try pass context to z.run() ? > > z.angularWatch("routeSelected", (before, after, context) => { > z.run(8, context) > } > > Thanks, > moon > > On Fr

Re: use of z.run

2016-03-19 Thread moon soo Lee
Hi, I think that's something you need to implement inside of notebook at the moment. Do you think it's a general requirement? Thanks, moon On Thu, Mar 17, 2016 at 2:12 PM tog wrote: > Hi > > In a scénario for which I would not know which paragraph to refresh (run), > would there be a way to re

Re: use of z.run

2016-03-19 Thread moon soo Lee
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.

Re: use of z.run

2016-03-19 Thread Balachandar R.A.
Hi moon, Little more information I would like to share regarding the issue The para 7 in my notebook will render a bar chart. The scope.routeSelected variable will be modified somewhere in the code. Now, I have modified the code a bit so that the variable is incremented on selecting a bar from

use of z.run

2016-03-19 Thread Balachandar R.A.
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). S

Re: use of z.run

2016-03-19 Thread Corneau Damien
Do you need to run a paragraph from the %angular paragraph? >From what you described before, you wanted to do z.run() from spark. If you need to run from %angular, you can try this PR: https://github.com/apache/incubator-zeppelin/pull/742 On Fri, Mar 18, 2016 at 1:55 PM, Balachandar R.A. wrote:

Re: use of z.run

2016-03-19 Thread Corneau Damien
@tog: Recently the paragraph id was added at the top of the paragraph setting dropdown, to make it easy to retrieve and copy paste. (If that helps :) ) On Fri, Mar 18, 2016 at 6:38 AM, moon soo Lee wrote: > Hi, > > I think that's something you need to implement inside of notebook at the > moment

Re: use of z.run

2016-03-18 Thread moon soo Lee
Hi, Could you try pass context to z.run() ? z.angularWatch("routeSelected", (before, after, context) => { z.run(8, context) } Thanks, moon On Fri, Mar 18, 2016 at 4:22 AM Balachandar R.A. wrote: > Hello, > > Thanks for discussing this issue. Yes, I would like to run a angular > paragr

Re: use of z.run

2016-03-18 Thread tog
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 s

Re: use of z.run

2016-03-18 Thread moon soo Lee
'z' - ZeppelinContext is some convenient function provided by SparkInterpreter. So not available in the other interpreters, unless we generalize it and make it available in all other interpreters. DuyHai's work https://github.com/apache/incubator-zeppelin/pull/740 provides 'z' in front-end (javasc

Re: use of z.run

2016-03-18 Thread Balachandar R.A.
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" wrote: > Hi Bala, > > z.run() accept both integer index of paragraph (starts from 0) [1] or > paragraph id [2]. > > So you can do something