>>>>> Zeppelin...creating a new notebook wont take effect...So all the Python
>>>>>>> code are executed in one python vm? Shouldn't separating ones are
>>>>>>> better?
>>>>>>>
>>>>
>>>>> import matplotlib.pyplot as plt
>>>>>>
>>>>>> x = np.arange(100)
>>>>>>
>>>>>> plt.figure()
>>>>>> plt.plot(x, x**2)
>>>>>> z.show(plt, width='300px')
&
gt;>>>> plt.close()
>>>>>
>>>>> But if I change x value to x= np.linspace(-2, 2, 1000), as it it used
>>>>> in the example, I got
>>>>>
>>>>>
>>>>> []
>>>>>
>>
gt;>>>
>>>>> But if I change x value to x= np.linspace(-2, 2, 1000), as it it used
>>>>> in the example, I got
>>>>>
>>>>>
>>>>> []
>>>>>
>>>>> Traceback (most recent call last):
>>&
quot;", line 1, in
>>>> File "", line 23, in show
>>>> File "", line 69, in show_matplotlib
>>>> UnicodeEncodeError: 'ascii' codec can't encode character '\u2212' in
>>>> position 17262: ordinal not in
, and I found if any of the value passed to plot()
>>> contains negative numbers, I will get this error...very odd.
>>>
>>>
>>>
>>> On Wed, Sep 14, 2016 at 8:50 AM Felix Cheung
>>> wrote:
>>>
>>>> And
>>>> matp
8:50 AM Felix Cheung
>> wrote:
>>
>>> And
>>> matplotlib.use('Agg')
>>>
>>> Would only work before matplotlib is first used so you would need to
>>> restart the interpreter. From error stack below it looks like something
>>&g
Would only work before matplotlib is first used so you would need to
>> restart the interpreter. From error stack below it looks like something
>> might be setting the default backend in matplotlib to TkAgg though.
>>
>> Are you using the Python interpreter or PySpark interp
ow it looks like something
> might be setting the default backend in matplotlib to TkAgg though.
>
> Are you using the Python interpreter or PySpark interpreter? Also how you
> are calling matplotlib like Moon asks?
>
> _________
> From: moon soo Lee
> Sent:
nterpreter? Also how you are
calling matplotlib like Moon asks?
_
From: moon soo Lee mailto:m...@apache.org>>
Sent: Tuesday, September 13, 2016 2:34 PM
Subject: Re: Matplotlib uses tkinter instead of Agg
To: mailto:users@zeppelin.apache.org>>
Hi,
Thanks f
Hi,
Thanks for sharing the problem.
Could you share which version of Zeppelin are you using and how did you try
matplotlib inside of Zeppelin? Are you trying matplotlib with z.show() ?
Thanks,
moon
On Tue, Sep 13, 2016 at 1:56 AM Xi Shen wrote:
> Hi,
>
> I want to build a Zeppelin docker image
11 matches
Mail list logo