-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fix image link (not showing up on the web) #3454
Conversation
Check out this pull request on ReviewNB: https://app.reviewnb.com/pymc-devs/pymc3/pull/3454 Visit www.reviewnb.com to know how we simplify your Jupyter Notebook workflows. |
Thanks! |
Actually, I can see here that it fetches the image there: <img alt="../_images/notebooks_SMC2_gaussians_14_0.png" src="../_images/notebooks_SMC2_gaussians_14_0.png" /> So I don't think my change will fix anything. |
The image could be embedded in the notebook: from IPython.display import Image
Image('smc.png') But that can't be in the same markdown cell. |
Yes but https://docs.pymc.io/notebooks/SMC2_gaussians.html has this line: <img alt="../_images/notebooks_SMC2_gaussians_14_0.png" src="../_images/notebooks_SMC2_gaussians_14_0.png" /> instead of: <img alt="https://github.com/pymc-devs/pymc3/raw/master/docs/source/notebooks/smc.png" src="https://github.com/pymc-devs/pymc3/raw/master/docs/source/notebooks/smc.png" /> I don't know how this static HTML file is built from the notebook. |
Oh shoot. I wrote that 🤦♂️. I think markdown/html should be just rendered as markdown/html, but let me go find the right code. |
On review this code only creates the gallery, it does not do the notebook --> html conversion. Looks like we use
|
Even a local image seems to work:
But one or the other, the documentation build has to be triggered, is it done when there is a release? |
I need more coffee. So this original PR was fine, I guess? Yes, the build has to be triggered, and we started only triggering doc builds manually on a release. We're planning to cut a release soon. Should we revert-revert this? @twiecki? |
Maybe the original PR was fine. It would be good to trigger the doc build locally to check. |
I'll try to remember that tonight (~8hrs). I have a server for testing doc builds. I'll ping when it is up there. |
Somehow this doesn't make the image show up. I edited locally to the markdown image tag, and that one works: |
Do you have time to make that PR, or want me to send one in? |
Done in #3455. |
The image was pointing to local
smc.png
file, and not showing in https://docs.pymc.io/notebooks/SMC2_gaussians.html.