-
Notifications
You must be signed in to change notification settings - Fork 132
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
Symbolic link causes problems with images in output cells #49
Comments
No idea how to debug that - do you want to merge WIP already or wait for the fix? |
I don't think #9 and #10 have anything to do with that. The problem seems to be that when Sphinx reads the intermediate reST file, which contains image links in the form This will hopefully be solved with #36, but I'm afraid this won't happen very soon. In the meantime I guess I'll have to make some kind of work-around, any ideas how to tackle this? |
Correction: The intermediate reST file contains links like this: |
It seemed to ultimately work in #9, what is different about my usecase? Would it help if I moved the NBs out of the subdirectory? The same problem persists locally. |
The problem is the symbolic link. It should work if you actually move the files to a "real" subdirectory |
Oh nice, that works. http://pymc-devs.github.io/pymc3/notebooks/stochastic_volatility.html. Thanks. |
Good to know that the work-around helps. I changed the title to mention that the problem occurs in output cells. There shouldn't be any problems with images in Markdown cells. |
Any solution to this? Having the NB directory live in the doc subdir is a bit unwieldy. |
Sorry, I don't know how to solve this before #36. But I'm open to suggestions! If you don't want to move the NB dir into the doc dir, you can do it the other way round, by moving |
Thanks for the suggestion. |
The You could of course create a custom The IMHO nicest solution would be to use BuildDoc in your
In this case, you wouldn't even need to move your If you want to go that way and need more information, don't hesitate to ask. |
Thanks @mgeier. I think I'm making some progress: pymc-devs/pymc#1245 The problem is that |
I didn't think about this before, but I guess it makes sense that the output directory is laid out like this (mirroring the source directory). You could try to move To get nicer URLs for the other pages, you should probably get rid of the |
It works for me when I create a real directory I think that's a feasible workaround. |
For example: http://pymc-devs.github.io/pymc3/notebooks/BEST.html
Tries to link to: http://pymc-devs.github.io/pymc3/notebooks/_build/doctrees/nbsphinx/notebooks_BEST_8_0.png
During compilation I get many warnings like:
/home/wiecki/working/projects/pymc/docs/source/notebooks/survival_analysis.ipynb:193: WARNING: image file not readable: notebooks/../_build/doctrees/nbsphinx/notebooks_survival_analysis_11_0.png
I have seen #9 which looks very related and installed from master to make sure #10 was included but those don't fix this issue.
The text was updated successfully, but these errors were encountered: