Repository navigation
DOC Clearer linear "get your development environment" setup documentation - #32509
Conversation
… instructions come first and avoid confusion
|
To fix the lint issue below, you'll need to merge Fixing the lint CI is useful, because then, as a reviewer, I will be able to see the rendered doc from your PR. The back-story is that cython-lint 0.18 changed something which broke Here is the cython-lint output for further reference: |
|
There are still some issues with duplicate labels and targets, I'll look into this tomorrow. |
|
So apparently, this is an issue within sphinx that included files are analyzed once as separate files and once within the file they are included in, which leads to duplicate label issues if the included file contains any labels/targets. This PR should only focus on the content (i.e., adding the selection part instead of jumping around), so I removed the separate file for now and added the content directly in |
|
UPDATE (see links to rendered docs below):
|
StefanieSenger
left a comment
There was a problem hiding this comment.
Thanks for your work, @AnneBeyer. The results in the rendered docs look awesome! 💛
Approving, since I only have a few nit comments.
It was overdue, I hope this gets merged soon enough to get into the next release.
There was a problem hiding this comment.
| #. Follow `these <https://help.github.com/articles/creating-a-pull-request-from-a-fork>`_ | |
| instructions to create a pull request from your fork. |
I have hardly seen this resulting in a maintainer to review a PR faster, because there is no bandwidth to do so. I think in terms of expectation management it might be better to remove this. What do you think about this @AnneBeyer and @lesteve?
There was a problem hiding this comment.
Same as above. To be kept in mind/discussed for a future revision of that section.
Co-authored-by: Stefanie Senger <[email protected]>
|
The setup your dev environment looks very nice, which is already a big improvement! One thing to double-check is whether the target+links point to the right place. For example I guess at this point, my thinking is how can we merge a first iteration of this sooner rather than later and work on improving this further on separate PRs. One thing I am not sure about is the |
|
The links are all fine (I checked). |
adrinjalali
left a comment
There was a problem hiding this comment.
Just checking the install instructions since I was tagged there.
The tag for the installation process was |
|
As for using
(@lucyleeow would know better the state of those) |
@lesteve I tried to make it as self contained as possible now, without leaving confusing bits "flying around", namely
Let me know what you think! |
I think this can probably close those PRs, but I don't recall those PRs sorry! |
|
OK let's merge this one, thanks a lot for your work on this @AnneBeyer this is super useful for new contributors and sprint partipants! Ideas for follow-up PRs (in no particular order):
|
I think it's nice to have conda first there, and make sure other parts are consistent with it instead of doing pip first just for the sake of consistency. In reality, I would recommend either [micro]mamba + conda-forge or uv, but none of those are in our guides |
Probably In general, I don't think the scikit-learn documentation is the best place to explain which tools to use for setting up a Python environment and the tradeoffs involved, as I mentioned in #30193 (comment). |
…tion (scikit-learn#32509) Co-authored-by: Stefanie Senger <[email protected]>
Reference Issues/PRs
Fixes #32475 as a first step towards more structured contribution guidelines.
What does this implement/fix? Explain your changes.
Inspired by the matplotlib documentation
it splits the previous
How to contributesection in Contributing Code into two parts, namelySet up your development environmentandDevelopment workflow.In
Set up your development environment, the user is now able to chose their OS and conda vs pip and gets a step by step guide for installing the required Python dependencies as well as a compiler with OpenMP support (no more jumping around!).In preparation of further restructuring of the contribution page, this part is moved into a separate file, but for now it is simply included in the maincontributing.rst.Building the package from source now links to
Set up your development environment.I also moved the videos to the end of the section, as I found it a bit confusing to figure out which parts are different/outdated/not relevant when watching them before reading the instructions.
Any other comments?
What is left to be done is
install.rstto make clear that building from source is mainly intended for users who want to contribute and move the remaining instructions on installing nightly builds fromadvanced_installation.rsttoinstall.rst(I will open a separate PR for that.),doc/developers/advanced_installation.rst#32343.