Could anyone please help try the buggy code on their computer to see 
whether it is my environment issue? 

Thanks,

Shawn

On Sunday, January 25, 2015 at 12:44:26 PM UTC-5, Yuxiang Wang wrote:
>
> Hi all,
>
> I just tested in a stand-alone IPython Qt Console (same environment) and 
> it does not have such issue.
>
> In [1]: %matplotlib qt
>
>
> In [2]: import matplotlib.pyplot as plt
>
>
> In [3]: fig1, axs1 = plt.subplots()
>
>
> In [4]: fig2, axs2 = plt.subplots()
>
>
> In [5]: plt.close(fig1)
>
>
> In [6]: plt.close(fig2)
>
>
> It works as expected in a standalone qt console, but not in spyder.
>
>
> Shawn
>
>
> On Saturday, January 24, 2015 at 10:32:04 PM UTC-5, Yuxiang Wang wrote:
>>
>> Hi all,
>>
>> It is a problem when I am closing figures in spyder.
>>
>> Environment: Spyder 2.3.2, Windows 64-bit, Python 3.4.2. 
>> Using IPython console, and the figure setting is "automatic" rather than 
>> "inline".
>>
>> If I do the following code:
>>
>> import matplotlib.pyplot as plt
>>
>>
>> fig1, axs1 = plt.subplots()
>>
>> fig2, axs2 = plt.subplots()
>>
>>
>> plt.close(fig1)
>>
>> plt.close(fig2)
>>
>>
>>
>> The kernel is immediately dead.
>>
>>
>> It'll show:
>>
>>
>> python.exe has stopped working
>>
>>
>>
>> Could anyone please confirm that?
>>
>>
>> Shawn
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to