10000 DOC: add show_versions() in .md files after 0.20 release by aboucaud · Pull Request #11631 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

DOC: add show_versions() in .md files after 0.20 release #11631

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

Closed
wants to merge 1 commit into from

Conversation

aboucaud
Copy link
Contributor

Following comments on #11522, this PR updates both CONTRIBUTING.md and ISSUE_TEMPLATE.md by replacing the version information request with the output of sklearn.show_versions() that will be implemented in release 0.20.

Reference Issues/PRs

Fixes #11522, follows up on #11596.

8000

import numpy; print("NumPy", numpy.__version__)
import scipy; print("SciPy", scipy.__version__)
import sklearn; print("Scikit-Learn", sklearn.__version__)
import sklearn; sklearn.show_versions()
Copy link
Member

Choose a reason for hiding this comment

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

We would need to have separate paragraphs in the documentation for scikit-learn >=0.20 and <0.20, otherwise users with older versions will not report relevant system information at all.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What would be the proper way to do that in markdown ?
In the .rst docs I have used a .. note:: paragraph to notify it but markdown is less rich and I could not find any other example.

import numpy; print("NumPy", numpy.__version__)
import scipy; print("SciPy", scipy.__version__)
import sklearn; print("Scikit-Learn", sklearn.__version__)
import sklearn; sklearn.show_versions()
Copy link
Member

Choose a reason for hiding this comment

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

Also 2 paragraphs here, depending on the scikit-learn version..

@qinhanmin2014
Copy link
Member

ping @aboucaud Please take some time to finish this one ASAP, thanks (It's not recommended to split your work in multiple PRs)

@qinhanmin2014 qinhanmin2014 added this to the 0.20 milestone Aug 1, 2018
@jnothman
Copy link
Member
jnothman commented Aug 1, 2018 via email

@qinhanmin2014
Copy link
Member

Oops, sorry.

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.

Add sklearn.show_versions() similar to pandas.show_versions (with numpy blas binding info)
4 participants
0