Closed sylviemonet closed 2 years ago
Nice catch @sylviemonet. It looks like the entire CSS of the jupyter notebooks is broken 🤔
Perhaps one fix is to update the version of nbsphinx
we are using?
@josh146 does this just apply to the thewalrus
or could it be the same in other libraries using nbspinx
?
@co9olguy : I do not know the answer to you question, but as far as I remember the only place where we used notebooks and do not create them from python scripts is here. As far as I've seen in e.g. the photonics website all the images are there.
Yep, currently the walrus is the only repo of ours that uses nbsphinx
.
In the doc/requirements.txt
file, we have
docutils==0.16
sphinx==1.8.5
nbsphinx
That is, Sphinx and docutils is pinned, but nbsphinx isn't. So likely a new version of nbsphinx was released that doesn't work with the old version of Sphinx/docutils.
The fix should be as simply as downgrading nbsphinx
to an older version that uses the same CSS rules; from looking at recent releases, perhaps trying version 0.7?
Alternately, we could upgrade the version of Sphinx we are using, but that is more dicey, and likely to break other parts of the documentation.
Any updates on this issue? Looks like there was a simple fix we could try. Does it solve the problem?
I've tried implementing @josh146 fix in this PR: https://github.com/XanaduAI/thewalrus/pull/260 . The docs unfortunately don't build :(
One funny (not sure if relevant) thing is that it seems as if python 3.6 is being used to build docs when nbsphinx
is set 0.7.
Issue description
The figures in the documentation "Basics of Hafnians and Loop Hafnians" are not found.
Additional information
https://the-walrus.readthedocs.io/en/latest/gallery/basics.html