I don't know about the Run paragraph API, but the option 2 should already be possible: https://zeppelin.incubator.apache.org/docs/0.6.0-incubating-SNAPSHOT/manual/dynamicform.html
On Tue, Dec 15, 2015 at 12:37 PM, 임정택 <kabh...@gmail.com> wrote: > Hi Zeppelin dev fellows, > > I was finding a way to run notebook via REST API with dynamic variable, and > seems like there's no way to get it. > > I found three ways to achieve that functionality (Sure there could be > more), please see below. > > 1. provide a way to update (I mean replace) content of the paragraph > > pros. > Very flexible. In this case we can prepare notebook, and clone it, and > replace specific paragraph which contains assignation of variables. > > cons. > I don't know about the side-effect. What if another user is playing > (especially modifying) with that notebook? > > 2. provide a way to put parameters when submitting run paragrath in REST > API > > pros. > Flexible enough, most promising way to have. > > cons. > Is there a way to receive parameter without breaking use cases via UI? I > couldn't imagine it. > At first I was considering ZeppelinContext, but it is not global feature > (bound to Spark interpreter). > > 3. provide a way to have paragraphs when submitting create notebook in REST > API > > pros. > It doesn't break anything. (right?) We just add paragraph(es) immediately > after creating notebook. > > cons. > Restricted. We need to delete executed notebooks (garbages?) by hand. > > I'm willing to contribute feature to Zeppelin, so when we decide the best > way (or ways) to accomplish, I'll try to implement it. > > Please share your opinion. Thanks in advance! > > Best, > Jungtaek Lim (HeartSaVioR) >