Re: Matplotlib uses tkinter instead of Agg

2016-09-21 Thread Xi Shen
>>>>> 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? >>>>>>> >>>>

Re: Matplotlib uses tkinter instead of Agg

2016-09-17 Thread Xi Shen
>>>>> import matplotlib.pyplot as plt >>>>>> >>>>>> x = np.arange(100) >>>>>> >>>>>> plt.figure() >>>>>> plt.plot(x, x**2) >>>>>> z.show(plt, width='300px') &

Re: Matplotlib uses tkinter instead of Agg

2016-09-17 Thread afancy
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 >>>>> >>>>> >>>>> [] >>>>> >>

Re: Matplotlib uses tkinter instead of Agg

2016-09-16 Thread Xi Shen
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): >>&

Re: Matplotlib uses tkinter instead of Agg

2016-09-16 Thread afancy
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

Re: Matplotlib uses tkinter instead of Agg

2016-09-14 Thread Xi Shen
, 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

Re: Matplotlib uses tkinter instead of Agg

2016-09-14 Thread moon soo Lee
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

Re: Matplotlib uses tkinter instead of Agg

2016-09-14 Thread Xi Shen
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

Re: Matplotlib uses tkinter instead of Agg

2016-09-14 Thread Xi Shen
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:

Re: Matplotlib uses tkinter instead of Agg

2016-09-13 Thread Felix Cheung
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

Re: Matplotlib uses tkinter instead of Agg

2016-09-13 Thread moon soo Lee
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