-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
[WIP] Add examples to samples_generator #6924
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
[WIP] Add examples to samples_generator #6924
Conversation
Thanks for informing us of that |
But I don't know if sphinx handles that plotting as you expect; nor do we have matplotlib as a general or testing dependency, so these examples will fail in continuous integration. I think a better solution would be to explicitly reference examples where one can see an illustration (in 2d). |
@jnothman What reasons speak against adding matplotlib as a testing dependency? I think having example plots adds great value (e.g. scipy/scipy#6253 - http://scipy.github.io/devdocs/generated/scipy.ndimage.gaussian_laplace.html#scipy.ndimage.gaussian_laplace). One the one hand, one can more easily / intuitively understand how some algorithms work. On the other hand, one can also see the code which generated the image. |
Well, apart from the dependency question, they didn't seem to render when I On 23 June 2016 at 20:43, Martin Thoma notifications@github.com wrote:
|
@rgommers Do you have an idea what is different in scikit-learn from scipy, so that the code above doesn't render? A very similar example worked just fine in scipy.ndimage. |
Is it possible there have been extensions to numpydoc? As per #4077, we're not in sync with that project. |
Looks like the issue is that scikit-learn doesn't use |
I'd rather not add the plot_directive.py.
|
I think these should be added to the user guide, and the docstring should link to the user guide. |
What does this implement/fix?
It adds graphical examples directly to some of the data generators
Comments
Currently,
make
does not work. But it seems not to be related to my changes:Also, the printed plots open during the test. I'm not sure if this might be a problem.