Parameter here you mean is value in dynamic form?  if it
is, RUN_PARAGRAPH websocket message (
https://github.com/apache/incubator-zeppelin/blob/fa40d567f0915c6372bd1792c776d485a129fd26/zeppelin-web/src/components/websocketEvents/websocketMsg.service.js#L72)
 can ship value for the dynamic form.

(json structure in 'params' key in RUN_PARAGRAPH message from client will
be deserialized into
https://github.com/apache/incubator-zeppelin/blob/master/zeppelin-interpreter/src/main/java/org/apache/zeppelin/display/GUI.java
 class)

Thanks
moon

On Tue, Nov 24, 2015 at 1:01 PM Girish Reddy <gir...@springml.com> wrote:

> We've made progress in using the websocket API to execute a notebook.
> However we're unable to pass any parameters to the notebook.  We have a
> requirement to pass a "jobid" runtime parameter so that the notebook can
> update a database once it's done execution.
>
> We have tried passing the parameters as HTTP headers hoping to access them
> via the HttpServletRequest object in NotebookServer.  However this doesn't
> seem to work as the headers never make it through to the NotebookServer
> code.
>
> Any thoughts please?
>
>
>
> On Sat, Oct 17, 2015 at 8:22 PM, Renxia Wang <renxia.w...@gmail.com>
> wrote:
>
>> You can use Zeppelin websocket API to interact with notebooks. See here:
>> https://github.com/apache/incubator-zeppelin/blob/master/zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookServer.java
>>
>>
>> Or you can use the REST API to create/delete/clone a notebook:
>> https://zeppelin.incubator.apache.org/docs/rest-api/rest-notebook.html
>>
>> The Websocket API provides more functionalities than the REST API.
>>
>> 2015-10-17 16:24 GMT-07:00 Girish Reddy <gir...@springml.com>:
>>
>>> Hello:
>>>
>>> Is there an API or any other way we can execute an existing notebook
>>> remotely?
>>>
>>> Also, can I programatically create a notebook with some "starter" code
>>> (or a template) so that users don't have to start from scratch?
>>>
>>> Thanks.
>>>
>>
>>
>

Reply via email to