<div dir="ltr">If you do <div><br></div><div>import matplotlib</div><div>print(matplotlib.__version__)</div><div>print(matplotlib.get_backend())</div><div><br></div><div>what do you get?</div><div><br></div><div>Are you using IPython or the plain python prompt? Does doing `%matplotlib` before importing pyplot help?  What OS?  What terminal emulator?  Does using `matplotlib.use('agg')` (no GUI, but should import) or `matplotlib.use('tkagg')` before you import pyplot change anything?  Have you used `pip install --user` or `sudo pip install `?</div><div><br></div><div>That this happens across all your environments on the same machine is a bit confusing as even if it were related to the backend the GUI toolkits should be sufficiently self-contained to the environment to not affect each other.</div><div><br></div><div>Tom</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 19, 2020 at 9:31 AM Slavin, Jonathan <<a href="mailto:jslavin@cfa.harvard.edu" target="_blank">jslavin@cfa.harvard.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Hi all,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">I've had this strange behavior occur, now for the second time, that I'm hoping someone can help me diagnose. What happens is that if I import pyplot, e.g. like </div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">import matplotlib.pyplot as plt</div><div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">the prompt becomes completely unresponsive. I can't even get out of it by ctrl-C or ctrl-Z. I have to actually kill the process. This happens in all my environments (which includes python 2.7, 3.6 and 3.7 and anaconda 2 and anaconda 3). Last time this happened it resolved itself somehow by itself.</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Because it happens with different versions of python, ipython, and matplotlib, I'm thinking that it must have to do with the backend. Any help would be appreciated.</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Thanks,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Jon</div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><img width="350" height="2" style="font-size: 12.6667px; font-family: Arial; white-space: pre-wrap; border: none;"></div><div dir="ltr">Jonathan D. Slavin</div><div dir="ltr">Astrophysicist - High Energy Astrophysics Division</div><div dir="ltr">Center for Astrophysics | Harvard & Smithsonian</div><div dir="ltr">Office: (617) 496-7981 | Cell: (781) 363-0035<br>60 Garden Street | MS 83 | Cambridge, MA 02138</div></div><div dir="ltr"><span><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9.5pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><img width="350" height="2" style="border: none;"></span><span style="font-size:9.5pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><br></span></p></span></div></div></div></div></div></div></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><br clear="all"><div><br></div>-- <br><div dir="ltr">Thomas Caswell<br><a href="mailto:tcaswell@gmail.com" target="_blank">tcaswell@gmail.com</a></div>