RE: can't plot

2019-10-29 Thread Manuel Sopena Ballesteros
Ok, One more question, I am getting an error when I force ipython %mansop.ipyspark print("Hello world!") java.io.IOException: Fail to launch IPython Kernel in 30 seconds at org.apache.zeppelin.python.IPythonInterpreter.launchIPythonKernel(IPythonInterpreter.java:297) at

Re: can't plot

2019-10-29 Thread Jeff Zhang
Based on the error message, you are still using python instead of ipython. It is hard to tell what's wrong. One suggestion is to try 0.8.2 which is the latest release. Manuel Sopena Ballesteros 于2019年10月30日周三 上午9:47写道: > Didn’t like %matplotlib inline > > > > Traceback (most recent call

RE: can't plot

2019-10-29 Thread Manuel Sopena Ballesteros
Didn’t like %matplotlib inline Traceback (most recent call last): File "/d1/hadoop/yarn/local/usercache/mansop/appcache/application_1570749574365_0083/container_e15_1570749574365_0083_01_01/tmp/zeppelin_pyspark-2736590645623350055.py", line 364, in code = compile('\n'.join(stmts), '',

Re: can't plot

2019-10-29 Thread Jeff Zhang
Try this %pyspark %matplotlib inline import matplotlib.pyplot as plt plt.figure() plt.plot([1, 2, 3]) Manuel Sopena Ballesteros 于2019年10月30日周三 上午9:39写道: > Another example: > > > > %pyspark > > > > import matplotlib.pyplot as plt > > > > plt.plot([1, 2, 3]) > > z.show(plt) > >

Re: can't plot

2019-10-29 Thread Jeff Zhang
I guess you are using ipython (starting from 0.8.x zeppelin will try to use ipython first if it is available) For matplotlib ploting in ipython, you need to add the following line %matplotlib inline Manuel Sopena Ballesteros 于2019年10月30日周三 上午9:12写道: > Dear Zeppelin user community, > > > > I

RE: can't plot

2019-10-29 Thread Manuel Sopena Ballesteros
Another example: %pyspark import matplotlib.pyplot as plt plt.plot([1, 2, 3]) z.show(plt) plt.close() According to documentation https://zeppelin.apache.org/docs/0.8.0/interpreter/python.html#matplotlib-integration Am I right assuming that I can use z.show in %pyspark? Thank you Manuel

can't plot

2019-10-29 Thread Manuel Sopena Ballesteros
Dear Zeppelin user community, I am running Zeppelin 0.8.0 and I am not able to print a plot using pyspark interpreter: This is my notebook: %pyspark import matplotlib.pyplot as plt plt.figure() plt.plot([1, 2, 3]) And this is the output: [] Any idea? NOTICE Please consider the

Issue with permissionsByRole field in Shiro integration

2019-10-29 Thread Yan Yang
Hi I am trying to integrate Shiro with LDAP auth. I have followed the setup guide on https://zeppelin.apache.org/docs/latest/setup/security/shiro_authentication.html and noticed one issue. The example refers to this configuration: ldapRealm.permissionsByRole= user_role = *:ToDoItemsJdo:*:*,