Skip to content

Get thumbnails working for gallery #340

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
merged 10 commits into from
May 31, 2022
Merged

Get thumbnails working for gallery #340

merged 10 commits into from
May 31, 2022

Conversation

twiecki
Copy link
Member

@twiecki twiecki commented May 31, 2022

Hackish, but it works.

Ideally we could use nbsphinx functionality to extract the thumbnails via the cell metadata but I couldn't get it to work (ref spatialaudio/nbsphinx#648).

This instead does things manually: it uses the old code @ColCarroll wrote to extract images from NBs, saves them to a dir, and then tells nbsphinx to reference against them.

image

@twiecki twiecki requested a review from OriolAbril May 31, 2022 16:17
Copy link
Member

@OriolAbril OriolAbril left a comment

Choose a reason for hiding this comment

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

Looks great and easy to maintain 🎉

not sure why there are git conflicts, I think we can merge once they are fixed and work on getting 4 columns in another PR or wait if you prefer to do it here.

@twiecki
Copy link
Member Author

twiecki commented May 31, 2022

Alright, rebased!

@OriolAbril OriolAbril merged commit aa187b5 into main May 31, 2022
@OriolAbril OriolAbril deleted the gallery branch May 31, 2022 17:17
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.

2 participants