Re: Matplotlib uses tkinter instead of Agg

2016-09-21 Thread Xi Shen
? Shouldn't separating ones are >>>>>>> better? >>>>>>> >>>>>>> After I get matplotlib work, I have a new problem. >>>>>>> >>>>>>> This code snippet works >>>>>>> %python

Re: Matplotlib uses tkinter instead of Agg

2016-09-17 Thread Xi Shen
gt;>>>>> plt.plot(x, x**2) >>>>>> z.show(plt, width='300px') >>>>>> 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-17 Thread afancy
gt;>>>> >>>>> [] >>>>> >>>>> Traceback (most recent call last): >>>>> File "", line 1, in >>>>> File "", line 23, in show >>>>> File "", line 69, in show_matplotlib

Re: Matplotlib uses tkinter instead of Agg

2016-09-16 Thread Xi Shen
gt;> [] >>>>> >>>>> Traceback (most recent call last): >>>>> File "", line 1, in >>>>> File "", line 23, in show >>>>> File "", line 69, in show_matplotlib >>>>> UnicodeEncodeError

Re: Matplotlib uses tkinter instead of Agg

2016-09-16 Thread afancy
t;> position 17262: ordinal not in range(128) >>>> >>>> I did some testing, and I found if any of the value passed to plot() >>>> contains negative numbers, I will get this error...very odd. >>>> >>>> >>>> >>>> On

Re: Matplotlib uses tkinter instead of Agg

2016-09-14 Thread Xi Shen
>>> >>>> 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 >>>> might be setting the

Re: Matplotlib uses tkinter instead of Agg

2016-09-14 Thread moon soo Lee
6 at 8:50 AM Felix Cheung <felixcheun...@hotmail.com> >> 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

Re: Matplotlib uses tkinter instead of Agg

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

Re: Matplotlib uses tkinter instead of Agg

2016-09-14 Thread Xi Shen
ke 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 <m...@apache.org> >

Re: Matplotlib uses tkinter instead of Agg

2016-09-13 Thread Felix Cheung
? Also how you are calling matplotlib like Moon asks? _ From: moon soo Lee <m...@apache.org<mailto:m...@apache.org>> Sent: Tuesday, September 13, 2016 2:34 PM Subject: Re: Matplotlib uses tkinter instead of Agg To: <users@zeppelin.apache.o

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