Closed sappelhoff closed 3 years ago
Generally I think we should have some figure / nice icon for each item in our gallery.
But how would we generate a plot like you propose without adding additional code to the examples?
But how would we generate a plot like you propose without adding additional code to the examples?
without additional code, we'd have to generate images "behind the scenes" during the doc build process, and then link them in the sphinx-gallery config ... or add lots of assets (which I wouldn't like)
however, I think that my proposal with it's 4 added lines would work quite well already. WDYT?
I like it, it’s just that I’m a bit concerned it might confuse users to see this code. Maybe we can somehow mark it clearly as “housekeeping, nothing to see here, move along”?
-- Sent from my phone, please excuse brevity and erroneous auto-correct.
On 21. Oct 2020, at 14:21, Stefan Appelhoff notifications@github.com wrote:
But how would we generate a plot like you propose without adding additional code to the examples?
without additional code, we'd have to generate images "behind the scenes" during the doc build process, and then link them in the sphinx-gallery config ... or add lots of assets (which I wouldn't like)
however, I think that my proposal with it's 4 added lines would work quite well already. WDYT?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
@sappelhoff It seems we might not need this after all. I believe this will do what we want: https://sphinx-gallery.github.io/stable/configuration.html#providing-a-figure-for-the-thumbnail-image
Yes, this is also what I had in mind with this part of what I said:
without additional code, we'd have to generate images "behind the scenes" during the doc build process, and then link them in the sphinx-gallery config ... or add lots of assets (which I wouldn't like)
I'd be fine with generating a few plots during the build process, and linking them as thumbnails. Including them as static files (assets) would be too much baggage IMHO.
Still, for producing some of these thumbnails, I think a thumbnail like this one would be nice:
it just looks BIDSy
if print_dir_tree could return a string, then we could "plot" that string, which could then be used as a thumbnail for the examples gallery.
I think that'd be easy to do, would make the gallery more beautiful, and perhaps even come in handy when one wants to print the dir tree to a file.
Example: