Skip to content

[MRG] Use sphinx-gallery 0.3.1 in doc build #14507

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

Merged

Conversation

lesteve
Copy link
Member

@lesteve lesteve commented Jul 29, 2019

I don't really understand why sphinx-gallery version was restricted in #13422 (comment). I can build locally with sphinx-gallery 0.4 without problem.

Of course if anyone remembers why this was done, comments and objections more than welcome!

Once the doc is built I'll have a look at a few pages and check that the output is similar on the dev doc and on this PR doc.

@thomasjpfan
Copy link
Member

Looks like scikit-image=0.12.3 is not on conda anymore. (conda search scikit-image)

@lesteve
Copy link
Member Author

lesteve commented Jul 29, 2019

Yeah I saw that @amueller asked on the conda gitter channel. Apparently this is due to https://www.anaconda.com/why-we-removed-the-free-channel-in-conda-4-7.

Copy link
Member

@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. It seems that the PyPi release was broken for 0.3.0 for some reason.
Merging it turns green.

@lesteve
Copy link
Member Author

lesteve commented Jul 30, 2019

Full disclosure: I saw at least one difference that was not expected. The print(__doc__) create empty output boxes (the yellowish box in the snapshot below):

image

Whether that is enough to prevent this PR being merged I don't know. This is probably reasonably easy to fix in sphinx-gallery.

The doc page the snapshot is coming from:
dev

this PR (from a previous build that I expect to be identical)

An alternative would be to install sphinx-gallery==0.3.1 since the sphinx-gallery output is sphinx-gallery/sphinx-gallery@40d7e65 which is in 0.4.0.

@glemaitre
Copy link
Member

Uhm, yep this is a bit problematic, IMO. When is the next sphinx-gallery release ;)

@lesteve lesteve force-pushed the use-latest-sphinx-gallery-release branch from 9f539c4 to b560966 Compare July 31, 2019 05:42
@lesteve lesteve force-pushed the use-latest-sphinx-gallery-release branch from b560966 to 345d8ab Compare July 31, 2019 05:44
@lesteve lesteve changed the title [MRG] Use latest sphinx-gallery in doc build [MRG] Use sphinx-gallery 0.3.1 in doc build Jul 31, 2019
@lesteve
Copy link
Member Author

lesteve commented Jul 31, 2019

I pushed a commit using sphinx-gallery 0.3.1. I suspect this will get rid of the output boxes but I'll double-check.

@lesteve
Copy link
Member Author

lesteve commented Jul 31, 2019

@glemaitre glemaitre merged commit e0f0b3d into scikit-learn:master Jul 31, 2019
@glemaitre
Copy link
Member

Thanks @lesteve

@thomasjpfan
Copy link
Member

Once sphinx-gallery/sphinx-gallery#529 gets released we can use the latest sphinx-gallery? :)

lesteve added a commit to lesteve/scikit-learn that referenced this pull request Aug 28, 2019
lesteve added a commit to lesteve/scikit-learn that referenced this pull request Aug 28, 2019
lesteve added a commit to lesteve/scikit-learn that referenced this pull request Aug 28, 2019
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

Successfully merging this pull request may close these issues.

3 participants