Re: ipython interpreter prerequisites

2021-10-27 Thread denny wong
 I see this message when I tried to list all installed modules.  I assume the 
IPython.kernel module got brought in by the "pip install jupyter".  It seems I 
can replace it with "pip install jupyter_client"?
The `IPython.kernel` package has been deprecated since IPython 4.0.You should 
import from ipykernel or jupyter_client instead.



On Wednesday, October 27, 2021, 11:47:11 PM EDT, Jeff Zhang 
 wrote:  
 
 I don't think so, at least we need jupyter-client module as we use
jupyter-client api to connect with ipython kernel.

denny wong  于2021年10月28日周四 上午11:24写道:

> Hi
> Question about the ipython interpreter prerequisites.  The jupyter module
> version ( https://pypi.org/project/jupyter/) is pretty old.  Can it be
> replaced by ipykernel module (https://pypi.org/project/ipykernel/)?
>
> Prerequisites
> - Jupyter `pip install jupyter`
> - grpcio `pip install grpcio`
> - protobuf `pip install protobuf`
>
> Will this work instead?- ipykernel `pip install ipykernel`
> - grpcio `pip install grpcio`
> - protobuf `pip install protobuf`
> Thanks
> Denny



-- 
Best Regards

Jeff Zhang
  

Re: ipython interpreter prerequisites

2021-10-27 Thread denny wong
Hi
Question about the ipython interpreter prerequisites.  The jupyter module 
version ( https://pypi.org/project/jupyter/) is pretty old.  Can it be replaced 
by ipykernel module (https://pypi.org/project/ipykernel/)?  

Prerequisites
- Jupyter `pip install jupyter`
- grpcio `pip install grpcio`
- protobuf `pip install protobuf`

Will this work instead?- ipykernel `pip install ipykernel`
- grpcio `pip install grpcio`
- protobuf `pip install protobuf`
Thanks
Denny

Re: [GitHub] [zeppelin] zjffdu opened a new pull request #4193: [ZEPPELIN-5473] Enable z.show for R

2021-08-01 Thread denny wong
 Can you add a logic to check if the max result size is reached?  If so, print 
out a warning message.  Essentially, the same behavior as found in the python 
interpreter.
        if exceed_limit:            print("\n%html Results are 
limited by {}.".format(self.max_result))

ThanksDenny

On Saturday, July 31, 2021, 10:48:16 PM EDT, GitBox  
wrote:  
 
 
zjffdu opened a new pull request #4193:
URL: https://github.com/apache/zeppelin/pull/4193


  ### What is this PR for?
  
  Enable `z.show` in `%r.ir` to make it consistent across languages. Unit test 
and docs are added.
  
  ### What type of PR is it?
  [Improvement]
  
  ### Todos
  * [ ] - Task
  
  ### What is the Jira issue?
  * https://issues.apache.org/jira/browse/ZEPPELIN-5473
  
  ### How should this be tested?
  * Ci pass and manually tested
  
  ### Screenshots (if appropriate)
  
![image](https://user-images.githubusercontent.com/164491/127757473-032de603-9273-4a7a-8803-f5c1f0051f82.png)
  
  
  ### Questions:
  * Does the licenses files need update? No
  * Is there breaking changes for older versions? No
  * Does this needs documentation? No
  


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


  

Re: z.show for R

2021-07-30 Thread denny wong
 We are using Zeppelin on the Oracle Autonomous Database Cloud for machine 
learning (OML).  Currently, we enabled the OML4Py (Python language) in the 
notebook.  We are working on enabling the OML4R (R language).  It would be good 
to support common features (e.g. z.show) for both languages for better user 
experience.
ThanksDenny
On Friday, July 30, 2021, 05:02:24 AM EDT, Jeff Zhang  
wrote:  
 
 Thanks Denny, BTW could you share a little bit about how you use R
interpreter in Zeppelin ? Not many people use R in zeppelin, so your
feedback would be very helpful for the community.



denny wong  于2021年7月29日周四 下午9:24写道:

>  Here is the ticket.  It would be desirable to have this addressed soon.
> Thanks.
> [ZEPPELIN-5473] Enable z.show for R - ASF JIRA
>
>
> |
> |
> |  |
> [ZEPPELIN-5473] Enable z.show for R - ASF JIRA
>
>
>  |
>
>  |
>
>  |
>
>
>
>
>    On Thursday, July 29, 2021, 08:37:56 AM EDT, Jeff Zhang <
> zjf...@gmail.com> wrote:
>
>  Hi Denny,
>
> Could you create a ticket for it ?
>
> denny wong  于2021年7月29日周四 下午8:08写道:
>
> >  Hi Jeff
> > It will be consistent to enable z.show for both python and R languages.
> > The zeppelin doc mentions the display system is backend independent, but
> it
> > doesn't work for R.  Is it easy to enable it for R?
> >
> >
> https://zeppelin.apache.org/docs/0.9.0/usage/display_system/basic.html#table
> >
> > Thanks
> > Denny
> >
> >    On Wednesday, July 28, 2021, 11:32:33 PM EDT, Jeff Zhang <
> > zjf...@gmail.com> wrote:
> >
> >  I don't this z.show is supported in R interpreter, but you can use R
> > package to visualize R data.
> >
> > denny wong 于2021年7月29日周四 上午11:03写道:
> >
> > > Hi
> > > In R, we want to leverage the Zeppelin's built in visualization, but
> not
> > > sure how it will work.  In python, we use z.show to display a data
> frame
> > > and leverage the built in visualization.  Is there an equivalent for R?
> > > Moreover, the table display system (%table) doesn't seem to work in R.
> > > Thanks
> > > Denny
> >
> >
> >
> > --
> > Best Regards
> >
> > Jeff Zhang
> >
>
>
>
> --
> Best Regards
>
> Jeff Zhang
>



-- 
Best Regards

Jeff Zhang
  

Re: z.show for R

2021-07-29 Thread denny wong
 Here is the ticket.  It would be desirable to have this addressed soon.  
Thanks.
[ZEPPELIN-5473] Enable z.show for R - ASF JIRA


| 
| 
|  | 
[ZEPPELIN-5473] Enable z.show for R - ASF JIRA


 |

 |

 |




On Thursday, July 29, 2021, 08:37:56 AM EDT, Jeff Zhang  
wrote:  
 
 Hi Denny,

Could you create a ticket for it ?

denny wong  于2021年7月29日周四 下午8:08写道:

>  Hi Jeff
> It will be consistent to enable z.show for both python and R languages.
> The zeppelin doc mentions the display system is backend independent, but it
> doesn't work for R.  Is it easy to enable it for R?
>
> https://zeppelin.apache.org/docs/0.9.0/usage/display_system/basic.html#table
>
> Thanks
> Denny
>
>    On Wednesday, July 28, 2021, 11:32:33 PM EDT, Jeff Zhang <
> zjf...@gmail.com> wrote:
>
>  I don't this z.show is supported in R interpreter, but you can use R
> package to visualize R data.
>
> denny wong 于2021年7月29日周四 上午11:03写道:
>
> > Hi
> > In R, we want to leverage the Zeppelin's built in visualization, but not
> > sure how it will work.  In python, we use z.show to display a data frame
> > and leverage the built in visualization.  Is there an equivalent for R?
> > Moreover, the table display system (%table) doesn't seem to work in R.
> > Thanks
> > Denny
>
>
>
> --
> Best Regards
>
> Jeff Zhang
>



-- 
Best Regards

Jeff Zhang
  

Re: z.show for R

2021-07-29 Thread denny wong
 Hi Jeff
It will be consistent to enable z.show for both python and R languages.  The 
zeppelin doc mentions the display system is backend independent, but it doesn't 
work for R.  Is it easy to enable it for R?
https://zeppelin.apache.org/docs/0.9.0/usage/display_system/basic.html#table

Thanks
Denny

On Wednesday, July 28, 2021, 11:32:33 PM EDT, Jeff Zhang  
wrote:  
 
 I don't this z.show is supported in R interpreter, but you can use R
package to visualize R data.

denny wong 于2021年7月29日周四 上午11:03写道:

> Hi
> In R, we want to leverage the Zeppelin's built in visualization, but not
> sure how it will work.  In python, we use z.show to display a data frame
> and leverage the built in visualization.  Is there an equivalent for R?
> Moreover, the table display system (%table) doesn't seem to work in R.
> Thanks
> Denny



-- 
Best Regards

Jeff Zhang
  

z.show for R

2021-07-28 Thread denny wong
Hi
In R, we want to leverage the Zeppelin's built in visualization, but not sure 
how it will work.  In python, we use z.show to display a data frame and 
leverage the built in visualization.  Is there an equivalent for R?
Moreover, the table display system (%table) doesn't seem to work in R.
Thanks
Denny

Re: [ZEPPELIN-5434] Upgrade jetty to 9.4.42.v20210604

2021-07-26 Thread denny wong
 We are not familiar with the embedded jetty.  Last time we upgraded to the 
9.4.42 version and the product just didn't start.  We have no clue what was 
going on. I was hoping someone from the Zeppelin community can fix it soon. 
Thanks
On Monday, July 26, 2021, 10:04:38 AM EDT, Jeff Zhang  
wrote:  
 
 Do you want to help with this ticket ?

denny wong  于2021年7月26日周一 下午10:00写道:

> Hi
> Any progress on this JIRA?  Is this being actively worked on?
> https://github.com/apache/zeppelin/pull/4160
>
> Thanks
> Denny



-- 
Best Regards

Jeff Zhang
  

[ZEPPELIN-5434] Upgrade jetty to 9.4.42.v20210604

2021-07-26 Thread denny wong
Hi
Any progress on this JIRA?  Is this being actively worked on?
https://github.com/apache/zeppelin/pull/4160

Thanks
Denny

Re: ZEPPELIN-5434

2021-07-13 Thread denny wong
 Hi

We are trying to upgrade the jetty to 9.4.42 due to a CVE, but ran into the 
same problem as this JIRA.  Has anyone trying to fix it?  Thanks.
[ZEPPELIN-5434] Upgrade jetty to 9.4.42.v20210604 by EricGao888 · Pull Request 
#4160 · apache/zeppelin


| 
| 
| 
|  |  |

 |

 |
| 
|  | 
[ZEPPELIN-5434] Upgrade jetty to 9.4.42.v20210604 by EricGao888 · Pull R...

What is this PR for? Upgrade jetty to 9.4.42.v20210604 What type of PR is it? 
Bug Fix Todos None What is t...
 |

 |

 |





Re: R Interpreter Problem

2021-07-02 Thread denny wong
 Thanks, we will try the IRInterpreter.
On Friday, July 2, 2021, 11:20:07 AM EDT, Jeff Zhang  
wrote:  
 
 Hi Denny,
I tried %r.ir on R 4.0.5, and it works well for me, please check the following 
2 links for how to use %r.ir
http://zeppelin.apache.org/docs/0.9.0/interpreter/r.html#using-the-r-interpreterrr-rir
http://zeppelin-notebook.com/#/notebook/2BWJFTXKJ




denny wong  于2021年7月2日周五 下午10:40写道:

 Hi Jeff
Initially, we used the Spark version that defined by the Zep 0.9.0 and got the 
error.
When we changed the Spark to the latest version 3.1.2, we got a different 
error.  Fyi, we are not using Spark at all, but it seems the R interpreter has 
dependency on the SparkR.  Our requirement is to enable R interpreter with the 
latest R version.  Please advice.  Thanks.
> .libPaths(c(file.path(libPath), .libPaths()))
> library(SparkR)
Error in readRDS(pfile) : unknown input format
Calls: library -> find.package -> lapply -> FUN -> readRDS
Execution halted

    On Friday, July 2, 2021, 10:26:09 AM EDT, Jeff Zhang  
wrote:  

 What version of spark do you use ? I am not sure whether your spark version
supports R 4.0 ?

denny wong  于2021年7月2日周五 下午10:02写道:

> Hi
> We have problem with the R interpreter when using R version 4.0.5.  We are
> seeing this error when the zeppelin_sparkr.R is being run at the startup
> time.  How to resolve the issue?  Thanks.
> > .libPaths(c(file.path(libPath), .libPaths()))
> > library(SparkR) Error: package or namespace load failed for 'SparkR':
> package 'SparkR' was installed before R 4.0.0: please re-install it
> Execution halted
>


-- 
Best Regards

Jeff Zhang
  


-- 
Best Regards

Jeff Zhang  

Re: R Interpreter Problem

2021-07-02 Thread denny wong
 Hi Jeff
Initially, we used the Spark version that defined by the Zep 0.9.0 and got the 
error.
When we changed the Spark to the latest version 3.1.2, we got a different 
error.  Fyi, we are not using Spark at all, but it seems the R interpreter has 
dependency on the SparkR.  Our requirement is to enable R interpreter with the 
latest R version.  Please advice.  Thanks.
> .libPaths(c(file.path(libPath), .libPaths()))
> library(SparkR)
Error in readRDS(pfile) : unknown input format
Calls: library -> find.package -> lapply -> FUN -> readRDS
Execution halted

On Friday, July 2, 2021, 10:26:09 AM EDT, Jeff Zhang  
wrote:  
 
 What version of spark do you use ? I am not sure whether your spark version
supports R 4.0 ?

denny wong  于2021年7月2日周五 下午10:02写道:

> Hi
> We have problem with the R interpreter when using R version 4.0.5.  We are
> seeing this error when the zeppelin_sparkr.R is being run at the startup
> time.  How to resolve the issue?  Thanks.
> > .libPaths(c(file.path(libPath), .libPaths()))
> > library(SparkR) Error: package or namespace load failed for 'SparkR':
> package 'SparkR' was installed before R 4.0.0: please re-install it
> Execution halted
>


-- 
Best Regards

Jeff Zhang
  

R Interpreter Problem

2021-07-02 Thread denny wong
Hi
We have problem with the R interpreter when using R version 4.0.5.  We are 
seeing this error when the zeppelin_sparkr.R is being run at the startup time.  
How to resolve the issue?  Thanks.
> .libPaths(c(file.path(libPath), .libPaths())) 
> library(SparkR) Error: package or namespace load failed for 'SparkR': package 
> 'SparkR' was installed before R 4.0.0: please re-install it Execution halted


Re: Remote Interpreter

2021-06-23 Thread denny wong
 Thanks for the quick reply.
In our use case, we only use the python and db interpreters (no yarn, spark, 
etc).  We would start the Zeppelin server in one node (as a container).  
Whenever, user runs a notebook, we would spawn a remote interpreter container 
(in the same node).  We use the isolated mode (one remote interpreter per 
note).  If we run out of resources in the current node, we would like to spawn 
new remote interpreters in a different node (we manage all nodes ourselves).  
We are using the DockerInterpreterLauncher to launch the remote interpreter 
container.
I have a question about this script (used to start the interpreter inside the 
container).  I see the script accepts the zeppelin.server.rpc.host, which 
allows the interpreter to communicate back to the zeppelin server. If I start 
the interpreter in a different node, how does it tell the zeppelin server to 
connect to that node?  Please advise.
{{CONTAINER_ZEPPELIN_HOME}}/bin/interpreter.sh -d 
{{CONTAINER_ZEPPELIN_HOME}}/interpreter/{{zeppelin.interpreter.group.name}} -r 
{{zeppelin.interpreter.rpc.portRange}} -c {{zeppelin.server.rpc.host}} -p 
{{zeppelin.server.rpc.portRange}} -i {{zeppelin.interpreter.group.id}} -l 
{{zeppelin.interpreter.localRepo}} -g {{zeppelin.interpreter.setting.name}}


On Wednesday, June 23, 2021, 11:17:00 AM EDT, Jeff Zhang  
wrote:  
 
 Yes,it is supported. You can either k8s mode (interpreter runs in pod ) or
yarn mode (interpreter runs in yarn container)

http://zeppelin.apache.org/docs/0.9.0/quickstart/kubernetes.html
http://zeppelin.apache.org/docs/0.9.0/quickstart/yarn.html


denny wong  于2021年6月23日周三 下午10:14写道:

> Hi
> We are using Zeppelin 0.9 and running the remote interpreter as a docker
> container.  Currently, the Zeppelin server and the remote interpreter are
> running on the same machine.  We would like to know if the remote
> interpreter can be run on a different machine than the Zeppelin server.  Is
> this currently supported?
> Thanks
> Denny



-- 
Best Regards

Jeff Zhang
  

Re: Remote Interpreter

2021-06-23 Thread denny wong
Hi
We are using Zeppelin 0.9 and running the remote interpreter as a docker 
container.  Currently, the Zeppelin server and the remote interpreter are 
running on the same machine.  We would like to know if the remote interpreter 
can be run on a different machine than the Zeppelin server.  Is this currently 
supported?
Thanks
Denny

Re: Cursor in Python interpreter jumps

2020-05-30 Thread denny wong
 Hi
We have encountered this issue in Zeppelin 0.8.2.  Any idea when will it be 
fixed?
[ZEPPELIN-3131] Cursor in Python interpreter jumps to start when typing certain 
characters - ASF JIRA

| 
| 
|  | 
[ZEPPELIN-3131] Cursor in Python interpreter jumps to start when typing ...


 |

 |

 |



Thanks
Denny

Re: Python interpreter

2019-10-31 Thread Denny Wong
Hi

Currently, we are using Zep 0.8.1 and the python docker interpreter. Each user 
runs his notebook in his own docker python container. If user wants to install 
3rd party modules (pip install) on demand, it doesn’t seem to work. How to 
install 3rd party modules via pip in the python container on demand? I see py4j 
running inside the container and there is a loop constantly looking for python 
script to execute. If user enters pip install in the paragraph to install 3rd 
party module, it doesn't work.  Because it is not a python code.  We need to 
use the container to run user script for security reason.  On the other hand, 
it is highly desirable to allow 3rd party modules via pip install.  Any 
suggestion?

Thanks
Denny


Re: Angular version upgrade in Zeppelin

2019-05-12 Thread Denny Wong
Hi

Any update on this issue? When can we expect to see the angular and bootstrap 
upgrade to happen? The current versions are quite old and have security issues. 
 Thanks

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

> On Mar 7, 2019, at 8:46 PM, Xun Liu  wrote:
> 
> Now write the python algorithm in the note, The reaction has been slow.
> Thank you very much, you can help upgrade the frontend.
> 
> Thank!
> 
>> 在 2019年3月8日,上午9:27,Jeff Zhang  写道:
>> 
>> The old angular version do cause many issues in frontend, I am thinking of
>> it for a long time to upgrade it to angular 7. If anyone is interested on
>> it, I would be very appreciated.
>> 
>>  于2019年3月8日周五 上午9:24写道:
>> 
>>> That’s great! I assume bootstrap is part of the upgrade (it has security
>>> issues). What is the timeframe this will be done?
>>> 
>>> Thanks
>>> Denny
>>> 
 On Mar 7, 2019, at 6:56 PM, Jongyoul Lee  wrote:
 
 Hi,
 
 I've added the related issue to GSOC as well. Please check
 https://issues.apache.org/jira/browse/ZEPPELIN-3981
 
> On Fri, Mar 8, 2019 at 2:44 AM  wrote:
> 
> Hi All
> 
> The current Angular 1.5 used in the latest Zeppelin has security issues
> (XSS). I see there is an outstanding jira issue to address the version
> upgrade (ZEPPELIN-2747), but it is not assigned to be worked on. Can
>>> this
> issue be addressed soon?
> 
> Thanks
> Denny
> 
 
 
 --
 이종열, Jongyoul Lee, 李宗烈
 http://madeng.net
>>> 
>>> 
>> 
>> -- 
>> Best Regards
>> 
>> Jeff Zhang
> 
> 


Re: Python Container

2018-08-05 Thread denny wong
 I am still trying to make the python docker to work.
I can see in the debugger, it tries to execute the following docker command to 
start the python process.
docker run -i --rm -v /tmp:/_zeppelin_tmp -v 
/scratch/zeppelin-branch-0.8:/_zeppelin -e 
PYTHONPATH=":/_zeppelin/interpreter/python/py4j-0.10.7/src::/_zeppelin/interpreter/lib/python"
 python:3.7 python /_zeppelin_tmp/zeppelin_python-8643449992792254752.py 26068 
10.196.10.37Traceback (most recent call last):  File 
"/_zeppelin_tmp/zeppelin_python-8643449992792254752.py", line 20, in    
 from py4j.java_gateway import java_import, JavaGateway, 
GatewayClientModuleNotFoundError: No module named 'py4j'
I see there is a reference to this directory (in -e PYTHONPATH) in the docker 
run command, but there is no such directory.
/_zeppelin/interpreter/python/py4j-0.10.7/src

However, there is a /_zeppelin/interpreter/python/py4j-0.10.7.jar, but I don't 
see any "src" subdirectory inside.

What is this "src" suppose to reference?  How is the "py4j" module installed?  
By who?
Please advise!

Denny

On Saturday, August 4, 2018, 10:43:02 PM EDT, Jeff Zhang  
wrote:  
 
 impersonation is not supported for ipython. The workaround is to use
ipyspark because spark interpreter support impersonation.


denny wong 于2018年8月5日周日 上午10:35写道:

>  I wonder if IPython can support multi-user?  I need os level isolation
> for python notebook.  For example, note1 and note2 shouldn't see each other
> directory files or os environment variables.
> Thanks
> Denny
>    On Saturday, August 4, 2018, 9:49:02 PM EDT, Jeff Zhang <
> zjf...@gmail.com> wrote:
>
>  Does you try the link here https://zeppelin.apache.org/download.html ? It
> works for me
>
> Regarding the ipython, the ipython session won't get closed after notebook
> is closed. You can reuse the session after the note is reopened. You check
> the section of Interprter Lifecycle Manager of this blog
> https://medium.com/@zjffdu/zeppelin-0-8-0-new-features-ea53e8810235
> Also it includes one ipython interpreter tutorial.
>
>  -
>
>
>
> denny wong 于2018年8月5日周日 上午12:21写道:
>
> > Hi
> >
> > I tried to download the 0.8 source codes, but the link didn't work. How
> do
> > I get the 0.8 source code?
> >
> >
> >    - Source: zeppelin-0.8.0.tgz (58 MB, pgp
> >    <
> https://www.apache.org/dist/zeppelin/zeppelin-0.8.0/zeppelin-0.8.0.tgz.asc
> >
> >    , md5
> >    <
> https://www.apache.org/dist/zeppelin/zeppelin-0.8.0/zeppelin-0.8.0.tgz.md5
> >
> >    , sha
> >    <
> https://www.apache.org/dist/zeppelin/zeppelin-0.8.0/zeppelin-0.8.0.tgz.sha512
> >
> >    )
> >
> >
> > I have been trying to understand the python container behavior, but so
> far
> > I couldn't make it to work. The python.docker works to the point it
> > downloads the python image.  The python code execution didn't work in the
> > next paragraph.
> >
> > I want to know about the lifetime of the container, basically the scope
> of
> > the container. If I close the notebook, what happens to the python
> objects
> > (e.g. variables, data frame, model, etc) created, are they gone?  For
> > example, the next time I open the same notebook and try to reference the
> > objects the python codes produced previously, am I able to reference them
> > or they are gone?
> >
> > How about the IPython implementation, what is scope of the python
> > session?  Is it tied to the notebook session?  In the other words, when
> the
> > notebook is closed, all python objects created in the session are gone?
> Is
> > there any way to save the python session so that the last created python
> > objects can be referenced later?
> >
> > Thanks,
> > Denny
> >
> >
> > On Thursday, August 2, 2018, 12:02:12 AM EDT, denny wong <
> > tecgi...@yahoo.com> wrote:
> >
> >
> > Hi
> >
> > I tried to use the python docker option in 0.8 (see below), but it didn't
> > work for me.  I can see the python docker image downloaded properly.
> > However when I ran the python paragraph (2nd paragraph), I got the
> "process
> > not running" error.  I didn't see any python container running.  What's
> > wrong?  Any idea?  - Thanks, Denny
> >
> >
> > [image: Inline image]
> >
> >
> > [image: Inline image]
> >
> >  

Re: Python Container

2018-08-04 Thread denny wong
 I wonder if IPython can support multi-user?  I need os level isolation for 
python notebook.  For example, note1 and note2 shouldn't see each other 
directory files or os environment variables.
Thanks
Denny
On Saturday, August 4, 2018, 9:49:02 PM EDT, Jeff Zhang  
wrote:  
 
 Does you try the link here https://zeppelin.apache.org/download.html ? It
works for me

Regarding the ipython, the ipython session won't get closed after notebook
is closed. You can reuse the session after the note is reopened. You check
the section of Interprter Lifecycle Manager of this blog
https://medium.com/@zjffdu/zeppelin-0-8-0-new-features-ea53e8810235
Also it includes one ipython interpreter tutorial.

  -



denny wong 于2018年8月5日周日 上午12:21写道:

> Hi
>
> I tried to download the 0.8 source codes, but the link didn't work. How do
> I get the 0.8 source code?
>
>
>    - Source: zeppelin-0.8.0.tgz (58 MB, pgp
>    
><https://www.apache.org/dist/zeppelin/zeppelin-0.8.0/zeppelin-0.8.0.tgz.asc>
>    , md5
>    
><https://www.apache.org/dist/zeppelin/zeppelin-0.8.0/zeppelin-0.8.0.tgz.md5>
>    , sha
>    
><https://www.apache.org/dist/zeppelin/zeppelin-0.8.0/zeppelin-0.8.0.tgz.sha512>
>    )
>
>
> I have been trying to understand the python container behavior, but so far
> I couldn't make it to work. The python.docker works to the point it
> downloads the python image.  The python code execution didn't work in the
> next paragraph.
>
> I want to know about the lifetime of the container, basically the scope of
> the container. If I close the notebook, what happens to the python objects
> (e.g. variables, data frame, model, etc) created, are they gone?  For
> example, the next time I open the same notebook and try to reference the
> objects the python codes produced previously, am I able to reference them
> or they are gone?
>
> How about the IPython implementation, what is scope of the python
> session?  Is it tied to the notebook session?  In the other words, when the
> notebook is closed, all python objects created in the session are gone?  Is
> there any way to save the python session so that the last created python
> objects can be referenced later?
>
> Thanks,
> Denny
>
>
> On Thursday, August 2, 2018, 12:02:12 AM EDT, denny wong <
> tecgi...@yahoo.com> wrote:
>
>
> Hi
>
> I tried to use the python docker option in 0.8 (see below), but it didn't
> work for me.  I can see the python docker image downloaded properly.
> However when I ran the python paragraph (2nd paragraph), I got the "process
> not running" error.  I didn't see any python container running.  What's
> wrong?  Any idea?  - Thanks, Denny
>
>
> [image: Inline image]
>
>
> [image: Inline image]
>
>  

Re: Python Container

2018-08-04 Thread denny wong
 Hi 
I tried to download the 0.8 source codes, but the link didn't work. How do I 
get the 0.8 source code?
   
   - Source: zeppelin-0.8.0.tgz (58 MB, pgp, md5, sha)

I have been trying to understand the python container behavior, but so far I 
couldn't make it to work. The python.docker works to the point it downloads the 
python image.  The python code execution didn't work in the next paragraph.
I want to know about the lifetime of the container, basically the scope of the 
container. If I close the notebook, what happens to the python objects (e.g. 
variables, data frame, model, etc) created, are they gone?  For example, the 
next time I open the same notebook and try to reference the objects the python 
codes produced previously, am I able to reference them or they are gone?
How about the IPython implementation, what is scope of the python session?  Is 
it tied to the notebook session?  In the other words, when the notebook is 
closed, all python objects created in the session are gone?  Is there any way 
to save the python session so that the last created python objects can be 
referenced later?
Thanks,
Denny

On Thursday, August 2, 2018, 12:02:12 AM EDT, denny wong 
 wrote:  
 
 Hi
I tried to use the python docker option in 0.8 (see below), but it didn't work 
for me.  I can see the python docker image downloaded properly.  However when I 
ran the python paragraph (2nd paragraph), I got the "process not running" 
error.  I didn't see any python container running.  What's wrong?  Any idea?  - 
Thanks, Denny






  

Re: Python Container

2018-08-01 Thread denny wong
Hi
I tried to use the python docker option in 0.8 (see below), but it didn't work 
for me.  I can see the python docker image downloaded properly.  However when I 
ran the python paragraph (2nd paragraph), I got the "process not running" 
error.  I didn't see any python container running.  What's wrong?  Any idea?  - 
Thanks, Denny








Re: Question about interpreters

2016-05-28 Thread Denny Wong
Hi Moon

I see in the interpreter.json, each interpreter has an id associated.  Is this 
id used in anyway?  Does Zeppelin  use the name and group attributes only to 
figure out the interpreter to use for each paragraph?  When does Zeppelin 
figure out interpreter to use?  Each time when a paragraph is about to run?
2B5UBR2T1": {
  "id": "2B5UBR2T1",
  "name": "psql",
  "group": "psql",
  "properties": {
"postgresql.password": "",
"postgresql.driver.name": "org.postgresql.Driver",
"postgresql.max.result": "1000",
"postgresql.url": "jdbc:postgresql://localhost:5432/",
"postgresql.user": "gpadmin"

Thanks
Denny

> On May 28, 2016, at 1:54 AM, moon soo Lee  wrote:
> 
> Hi Denny,
> 
> Binding information between interpreter and notebook is persisted in
> 'conf/interpreter.json'. So normally, notebook will not have any problem
> when imported to a different instance.
> 
> The interpreter ids in 'angularObject' section is used for restoring
> angularObject. So when a notebook which includes angularObject is imported
> to a different instance, angularObject will be restored to front-end side,
> but will not automatically restored to the backend (interpreter) side. Most
> case, user will just need to run notebook to create angularObject in the
> new instance.
> 
> Thanks,
> moon
> 
> On Fri, May 27, 2016 at 8:29 PM denny wong 
> wrote:
> 
>> If I export a notebook from one Zeppelin instance and import it to a
>> different instance.  There are possibilities that the new instance may have
>> different interpreter settings, so the interpreter ids may be different.
>> How does Zeppelin resolve the id differences?  The interpreter ids seem
>> embedded in the notebook json data.  If any of these ids don't match the
>> interpreters in the new instance, what would happen?
>> "angularObjects": {  "2BDFTKHGQ": [],  "2BB471VK2": [],
>> "2BCJUYDVX": [],  "2BC45AGQM": [],  "2BCGRMV7H": [],
>> "2BDGM8X1N": [],  "2BC7KXZAS": [],  "2BENDU4PZ": [],
>> "2BD552SA5": [],  "2BDQVWF7N": [],  "2BBJTY1M2": [],
>> "2BCKDVMGA": [],  "2BC1DGS1Y": [],  "2BD89FPEV": [],
>> "2BBBNC5BZ": [],  "2BAX63HFB": [],  "2BE4DCPJG": []},
>> Thanks,
>> Denny


Re: Question about interpreters

2016-05-27 Thread denny wong
If I export a notebook from one Zeppelin instance and import it to a different 
instance.  There are possibilities that the new instance may have different 
interpreter settings, so the interpreter ids may be different.  How does 
Zeppelin resolve the id differences?  The interpreter ids seem embedded in the 
notebook json data.  If any of these ids don't match the interpreters in the 
new instance, what would happen?
"angularObjects": {      "2BDFTKHGQ": [],      "2BB471VK2": [],      
"2BCJUYDVX": [],      "2BC45AGQM": [],      "2BCGRMV7H": [],      "2BDGM8X1N": 
[],      "2BC7KXZAS": [],      "2BENDU4PZ": [],      "2BD552SA5": [],      
"2BDQVWF7N": [],      "2BBJTY1M2": [],      "2BCKDVMGA": [],      "2BC1DGS1Y": 
[],      "2BD89FPEV": [],      "2BBBNC5BZ": [],      "2BAX63HFB": [],      
"2BE4DCPJG": []    },
Thanks,
Denny