Re: Setting the default interpreter after creating a new notebook via REST

2019-03-06 Thread Jojo Paderes
Thanks for pointing these out. I've create a jira issue for the improvement
of the create notebook REST API:

https://issues.apache.org/jira/browse/ZEPPELIN-4037

On Thu, Mar 7, 2019 at 12:09 AM Xun Liu  wrote:

> Hi, *Jojo Paderes *
>
> Create a note via the web, Is calling here :
> https://github.com/apache/zeppelin/blob/master/zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookServer.java#L283
> , You can specify an interpreter type.
>
> Create a note via REST, Is calling here :
> https://github.com/apache/zeppelin/blob/master/zeppelin-server/src/main/java/org/apache/zeppelin/rest/NotebookRestApi.java#L363
>  , Only
> the default spark interpreter can be used.
>
> I looked at the REST importNote interface.
> https://github.com/apache/zeppelin/blob/master/zeppelin-server/src/main/java/org/apache/zeppelin/rest/NotebookRestApi.java#L342
>  ,
> The specified interpreter is also not supported.
>
> If you need to, you can create a JIRA , Implement it yourself, or let
> others help you with this feature.
>
> :-)
>
>
> 在 2019年3月6日,下午11:29,Jojo Paderes  写道:
>
> I'm trying to figure if there's a way to specify the default interpreter
> when creating a new notebook using Zeppelin's REST api. Is this possible?
> Or the only way to set the default interpreter for the notebook is using
> the web interface only?
>
>
>


Re: Setting the default interpreter after creating a new notebook via REST

2019-03-06 Thread Xun Liu
Hi, Jojo Paderes 

Create a note via the web, Is calling here : 
https://github.com/apache/zeppelin/blob/master/zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookServer.java#L283
 

  , You can specify an interpreter type.

Create a note via REST, Is calling here : 
https://github.com/apache/zeppelin/blob/master/zeppelin-server/src/main/java/org/apache/zeppelin/rest/NotebookRestApi.java#L363
 

 , Only the default spark interpreter can be used.

I looked at the REST importNote interface. 
https://github.com/apache/zeppelin/blob/master/zeppelin-server/src/main/java/org/apache/zeppelin/rest/NotebookRestApi.java#L342
 

 , The specified interpreter is also not supported.

If you need to, you can create a JIRA , Implement it yourself, or let others 
help you with this feature.

:-)


> 在 2019年3月6日,下午11:29,Jojo Paderes  写道:
> 
> I'm trying to figure if there's a way to specify the default interpreter when 
> creating a new notebook using Zeppelin's REST api. Is this possible? Or the 
> only way to set the default interpreter for the notebook is using the web 
> interface only?