Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GIF is missing #321

Closed
quasiben opened this issue Sep 11, 2019 · 6 comments
Closed

GIF is missing #321

quasiben opened this issue Sep 11, 2019 · 6 comments

Comments

@quasiben
Copy link

I am trying to use nbsphinx with a notebook which contains a GIF. However, on conversion from ipynb to HTML the GIF is not copied to an images directory nor is there a line in the corresponding HTML which references a GIF. It seems as if nbsphinx is completely ignoring the file. Is there some setting I may be missing for the conf.py to pull in GIFs ?

IPYNB: https://github.com/dask/dask-tutorial/blob/master/01x_lazy.ipynb
HTML OUTPUT: https://tutorial.dask.org/01x_lazy.html

@TomAugspurger
Copy link

As a note of followup, the GIF is handled well when markdown syntax is used

![img](path/to/gif.gif)

It failed to be included in the built HTML when writing HTML directly

<img src="path/to/gif"/>

@mgeier
Copy link
Member

mgeier commented Sep 24, 2019

@quasiben Does that answer your question?

@quasiben
Copy link
Author

Not exactly. Ideally, nbsphinx should pick up the markdown syntax of a gif as it does with a png/jpeg. But if you want to close that's ok with me

@mgeier
Copy link
Member

mgeier commented Sep 30, 2019

@quasiben No, I don't necessarily want to close this, I just wanted to know if I have to look into this.

Right now, the GIF if shown in your HTML link above, so can you please clarify what's the actual problem?

This was referenced Apr 17, 2020
@mgeier
Copy link
Member

mgeier commented Apr 18, 2020

This may or may not be fixed by #438. I'm closing it anyway due to lack of response.

@mgeier mgeier closed this as completed Apr 18, 2020
@hakonanes
Copy link

It failed to be included in the built HTML when writing HTML directly

<img src="path/to/gif"/>

This HTML syntax displayed my GIF nicely (bottom of this section): https://kikuchipy.org/en/latest/visualizing_patterns.html#Plot-multiple-signals


BTW, thanks a lot for nbsphinx, it makes writing Sphinx documentation much more fun 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants