<p dir="ltr">Great to hear that you got this sorted out!</p>
<p dir="ltr">Tom</p>
<br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 11, 2017, 12:36 Strozzi, David J. <<a href="mailto:strozzi2@llnl.gov">strozzi2@llnl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div class="m_-6579470315107099055WordSection1">
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">This is an issue I bugged several people / lists about previously, which has a solution.  Thought I’d share it.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am running the GNU Win32 native build of emacs (ver. 25.3), on Windows 7 (not a cygwin or X11 version).  I’m one of those “emacs is an operating system” people, and like running Python shells within emacs.  The problem was getting matplotlib
 figures to work – the figure window would either say “not responding”, not render, freeze, or somehow misbehave.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Someone involved in the elpy package (for python on emacs) gave the following solution, which works for me using the TkAgg or Qt5Agg backends: use jupyter console instead of ipython.  The whole thing is murky to me, but I thought that nowadays
 ipython is the Python-specific “piece” / interface to jupyter console.  Either way, it seems like jupyter console just gives me ipython, but apparently in a way that the event loop or whatever with figure windows is “happy”.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">So Add this to your .emacs:<u></u><u></u></p>
<p class="MsoNormal">(setq python-shell-interpreter "jupyter"<u></u><u></u></p>
<p class="MsoNormal">      python-shell-interpreter-args "console --simple-prompt")<u></u><u></u></p>
<p class="MsoNormal">(setq python-shell-completion-native-enable nil)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Then M-x run-python, then pylab, then figure(1) etc. and it should work.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Hope this helps more people use emacs as their Windows Python IDE.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Dave<u></u><u></u></p>
</div>
</div>

_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
</blockquote></div>