-
Notifications
You must be signed in to change notification settings - Fork 7
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
Examples gallery for napari-threedee #104
Conversation
Awesome! This looks great! I see that there are multiple "gallery subpages" in the nav. Would it be possible to make a separate subpage for the "library" examples and the "plugin examples"? You may have already inferred, but former shows how to import the actual widget and the latter shows how to use the plugin interface. I think it isn't necessary for the initial PR, but at some point, it might be nice to see if it's possible to make the screenshot have some of the manipulators, annotators, etc. in view. Super cool stuff, @GenevieveBuckley ! |
I just saw #103. I can work on that today. |
Yes, this is already done (sorry, I just named things poorly in the last screenshot, so it looked like duplicated gallery subpages, instead of being named for the plugin and library examples)
Yes, good idea for the future. |
Codecov ReportPatch and project coverage have no change.
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## main #104 +/- ##
=======================================
Coverage 71.73% 71.73%
=======================================
Files 67 67
Lines 2827 2827
=======================================
Hits 2028 2028
Misses 799 799 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
One slightly weird thing to be aware of: I had to turn the screenshot flash animation OFF in napari_image_scraper, because otherwise it would turn some of the image scheenshots grey somehow. I also don't understand your example script organisation. At first it looks like the examples are just duplicated across the "plugin" and "library" folders, but actually not all scripts are the same, and sometimes even the ones that are named the same have slightly different code and/or comments. |
Ok, I don't know how to initialize Qt properly on the CI.
I though adding Talley's github action might fix it, but no. How does the main napari repo do this? |
Hooray! Andy and Draga helped me figure out the github actions workflow. We needed:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, this is awesome!
it looks like the --strict
mkdocs build is failing because:
- our filenames for the
library
andplugin
examples are the same. I can fix this in a separate PR - there are references to non-existant API docs in the nav config. I can fix this in a separate PR.
I'm not familiar with the merits of building with/without the --strict
flag. Do you think we should use it, @GenevieveBuckley ? If so, I can make the PRs I mentioned above and I think it will work :)
@GenevieveBuckley , I went ahead and made a PR that I think should fix the the outstanding nav issues with the edit: I see that you modified some of the examples files, so I will leave the renaming up to you. |
Sorry, that's a bit sloppy on our side. The intention is that we have examples that both import the actual widget and launch with the plugin. The reason to show the widget import is just so folks that want to make custom widgets by composing our widgets with other know where to start. We can make sure the code is consistent in a separate PR. |
Hey @GenevieveBuckley ! I think this looks great! Is this ready for review? I saw you "marked it as ready", but the title is still WIP, so I wasn't sure. No worries either way - just wanted to check in. |
Sorry - forgot to edit the title, I'll take out the "WIP" bit now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, this is super cool, @GenevieveBuckley . Thank you for contributing this and for figuring out how to get it all running on CI.
I tested building it locally and it looks great. I kind of like having the examples scripts in the base repo so that they are easy for folks checking out the repo to find. I think we could adjust the CI job to copy the files from the examples
directory into the docs
at runtime. However, I think this PR is a standalone contribution as it establishes the infrastructure and we can iterate in future PRs.
I will leave this up for the rest of the day in case @alisterburt wants to weigh in. Otherwise, I will merge tomorrow. Thanks again!
Closes #99