<div>Right, I actually brought this up with the matplotlib developers at the scipy conference last year:</div><div><br></div><div><a href="https://github.com/matplotlib/matplotlib/issues/6739">https://github.com/matplotlib/matplotlib/issues/6739</a><br></div><div><br><div class="gmail_quote"><div>On Mon, Mar 6, 2017 at 8:27 AM (Jan) Christoph Bischko <<a href="mailto:christoph.bischko@gmail.com">christoph.bischko@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Nathan,<br class="gmail_msg">
<br class="gmail_msg">
thanks for the lightning-fast reply!<br class="gmail_msg">
<br class="gmail_msg">
On 06.03.2017 17:15, Nathan Goldbaum wrote:<br class="gmail_msg">
> Currently that's not supported outside of a Jupyter notebook.<br class="gmail_msg">
><br class="gmail_msg">
> That said, in the next major release of yt (yt 3.4) we will add support<br class="gmail_msg">
> for this. If you'd like to try it out right now you'll need to install<br class="gmail_msg">
> yt from the "yt" branch of the mercurial repository. There are<br class="gmail_msg">
> instructions on how to build yt from source here:<br class="gmail_msg">
><br class="gmail_msg">
> <a href="http://yt-project.org/docs/dev/installing.html#installing-yt-using-pip-or-from-source" rel="noreferrer" class="gmail_msg" target="_blank">http://yt-project.org/docs/dev/installing.html#installing-yt-using-pip-or-from-source</a><br class="gmail_msg">
><br class="gmail_msg">
> Here's some description in the docs for the in-development version of yt<br class="gmail_msg">
> where this feature is available already:<br class="gmail_msg">
><br class="gmail_msg">
> <a href="http://yt-project.org/docs/dev/visualizing/plots.html#viewing-plots" rel="noreferrer" class="gmail_msg" target="_blank">http://yt-project.org/docs/dev/visualizing/plots.html#viewing-plots</a><br class="gmail_msg">
><br class="gmail_msg">
> Basically you just do:<br class="gmail_msg">
><br class="gmail_msg">
> import yt<br class="gmail_msg">
> yt.toggle_interactivity()<br class="gmail_msg">
<br class="gmail_msg">
Thank you Nathan, that is convenient and amazing.<br class="gmail_msg">
<br class="gmail_msg">
I just found <a href="http://yt-project.org/doc/visualizing/manual_plotting.html" rel="noreferrer" class="gmail_msg" target="_blank">http://yt-project.org/doc/visualizing/manual_plotting.html</a>,<br class="gmail_msg">
which I will use as a workaround for the time being as I also need some<br class="gmail_msg">
(limited) backward-compatibility.<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
> And the next time you call plot.show() it should pop up a GUI plot<br class="gmail_msg">
> window using your default matplotlib backend. Unfortunately we can't<br class="gmail_msg">
> make this behavior the default since yt is often used in headless ssh<br class="gmail_msg">
> sessions on a supercomputer where using an interactive GUI backend would<br class="gmail_msg">
> cause a crash.<br class="gmail_msg">
<br class="gmail_msg">
Unless you couple it with something like:<br class="gmail_msg">
<br class="gmail_msg">
    import os<br class="gmail_msg">
    if 'DISPLAY' not in os.environ: matplotlib.use('agg')<br class="gmail_msg">
<br class="gmail_msg">
Which, I admit, could be improved upon. However, there should be less<br class="gmail_msg">
crude hacks to detect the headless case.<br class="gmail_msg">
<br class="gmail_msg">
Regards,<br class="gmail_msg">
Christoph<br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
yt-users mailing list<br class="gmail_msg">
<a href="mailto:yt-users@lists.spacepope.org" class="gmail_msg" target="_blank">yt-users@lists.spacepope.org</a><br class="gmail_msg">
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class="gmail_msg">
</blockquote></div></div>