Open bmcfee opened 4 years ago
If I read this correctly - it sounds like the feature request is more like "glue HTML outputs as figures" rather than matplotlib animations per-se, is that right? (e.g., if the matplotlib animation was a gif this would still work fine right?)
it sounds like the feature request is more like "glue HTML outputs as figures" rather than matplotlib animations per-se, is that right?
In retrospect, yes, exactly. I've since switch to the jshtml output instead of html5 video, but the underlying issue is the same in both cases.
ok cool - I'm gonna change the title here. I think it's a good idea to support as more and more visualization libraries use HTML in their outputs and maybe (one day, in like a million years) journals will support this
I have been trying to glue the output from plotly, which is also rich html and javascript. However, in my document I get no output (not even the static png fallback). I assume that this is due to the same issue discussed above.
I'm also having the same issue with plotly, I've tried a couple workarounds but so far haven't been able to get it to display.
For Plotly and Holoviews I've had some success with a - rather hacky - glue wrapper which is currently providing "rich" figures for HTML outputs and static renders for PDF builds. See https://github.com/executablebooks/jupyter-book/issues/1815#issuecomment-1426236893 for the code and more details... it's not great, but will hopefully be useful for anyone else having these issues at the moment.
Is your feature request related to a problem? Please describe.
Gluing a matplotlib animation as a
glue:figure
directive doesn't work, in that no animation content is rendered in the final webpage, and it shows up as an empty figure (with index and caption, though).Describe the solution you'd like I would hope that rendered animations (via their repr_html) could be embedded inside a figure.
Describe alternatives you've considered I'm hacking around it for now by displaying the rendered animation in an output cell immediately above the figure glue reference, eg: