<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;display:inline">​Thanks Nathan.  In fact since sending that message I discovered that it's a simple typo in​</div> <div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;display:inline">​base_plot_types.py under​ the visualization directory. qt5agg had been typed as gt5agg.</div></div><div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;display:inline"><br></div></div><div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;display:inline">On a related subject, I thought that after doing yt.toggle_interactivity() yt would then send output to a plotting window in the same way that using matplotlib in ipython does.  But, at least for me, that doesn't happen. Is the interactivity only for jupyter notebooks?</div></div><div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;display:inline"><br></div></div><div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;display:inline">Jon</div></div><div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;display:inline"><br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Message: 2<br>
Date: Thu, 7 Dec 2017 14:43:11 -0600<br>
From: Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com">nathan12343@gmail.com</a>><br>
To: Discussion of the yt analysis package<br>
        <<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a>><br>
Subject: Re: [yt-users] inconsistent backend when using yt<br>
        interactively<br>
Message-ID:<br>
        <<a href="mailto:CAJXewOn52fdA4g3EkdP-g4f0dzqy7AWWPXfZn8P9OJqOMz1n4A@mail.gmail.com">CAJXewOn52fdA4g3EkdP-<wbr>g4f0dzqy7AWWPXfZn8P9OJqOMz1n4A<wbr>@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Jon,<br>
<br>
This was a bug that got fixed a couple months ago:<br>
<br>
<a href="https://github.com/yt-project/yt/commit/d357110d01f63b6e20066703e16dd979823fb445" rel="noreferrer" target="_blank">https://github.com/yt-project/<wbr>yt/commit/<wbr>d357110d01f63b6e20066703e16dd9<wbr>79823fb445</a><br>
<br>
If you switch to running yt from the git master branch you should be good<br>
to go.<br>
<br>
We're overdo for a bugfix release, which is blocked on me (or someone else<br>
if they're feeling ambitious) figuring out how to adapt the script we used<br>
to use to backport pull requests with hg/bitbucket to git/github.<br>
<br>
Apologies for the trouble,<br>
<br>
Nathan<br>
<br>
On Thu, Dec 7, 2017 at 2:34 PM, Slavin, Jonathan <<a href="mailto:jslavin@cfa.harvard.edu">jslavin@cfa.harvard.edu</a>><br>
wrote:<br>
<br>
> Hi all,<br>
><br>
> I've been using yt for some time, but mostly as a way to access AMR data<br>
> generated by FLASH.  Just now I tried using the (new, I think) interactive<br>
> plotting capabilities of yt by doing:<br>
> yt.toggle_interactivity()<br>
> ds = yt.load(hdf5_file)<br>
> p2d = yt.plot_2d(ds,'temperature')<br>
><br>
> When I toggle interactivity I get the message:<br>
> Using matplotlib backend: Qt5Agg<br>
><br>
> ?but when I try to generate the 2d plot I get a bunch of error messages<br>
> ending with:<br>
> ?/export/slavin/python/<wbr>anaconda/lib/python2.7/site-<br>
> packages/yt/visualization/<wbr>base_plot_types.pyc in _set_canvas(self)<br>
>     120                 mod = __import__('matplotlib.<wbr>backends',<br>
> globals(), locals(),<br>
>     121                                  [backend_dict[key][0]], 0)<br>
> --> 122                 submod = getattr(mod, backend_dict[key][0])<br>
>     123                 FigureCanvas = getattr(submod,<br>
> backend_dict[key][1])<br>
>     124                 if len(backend_dict[key]) > 2:<br>
><br>
> AttributeError: 'module' object has no attribute 'backend_gt5agg'<br>
><br>
> ?So somehow the backend got changed to, or was assumed? to be, gt5agg<br>
> rather than qt5agg.  It's especially weird in that I don't think there even<br>
> is a gt5agg backend.  Seems a mixture of qt5agg and gtkagg.  Any ideas?<br>
><br>
> Jon<br>
><br>
> --<br>
> ______________________________<wbr>__________________________<br>
> Jonathan D. Slavin                 Harvard-Smithsonian CfA<br>
> <a href="mailto:jslavin@cfa.harvard.edu">jslavin@cfa.harvard.edu</a>       60 Garden Street, MS 83<br>
> phone: <a href="tel:%28617%29%20496-7981" value="+16174967981">(617) 496-7981</a>       Cambridge, MA 02138-1516<br>
> cell: <a href="tel:%28781%29%20363-0035" value="+17813630035">(781) 363-0035</a>             USA<br>
> ______________________________<wbr>__________________________<br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20171207/ebf3f80d/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>pipermail/yt-users-spacepope.<wbr>org/attachments/20171207/<wbr>ebf3f80d/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
______________________________<wbr>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
<br>
<br>
------------------------------<br>
<br>
End of yt-users Digest, Vol 118, Issue 11<br>
******************************<wbr>***********<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">________________________________________________________<br>Jonathan D. Slavin                 Harvard-Smithsonian CfA<br><a href="mailto:jslavin@cfa.harvard.edu" target="_blank">jslavin@cfa.harvard.edu</a>       60 Garden Street, MS 83<br>phone: (617) 496-7981       Cambridge, MA 02138-1516<br>cell: (781) 363-0035             USA<br>________________________________________________________<br><br></div></div></div></div>
</div></div>