You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DOC Clearer linear "get your development environment" setup documentation #32475
Right now you need to go back and forth between different places of the doc which is less than ideal. You would be able to chose your OS and conda vs pip and you would get something that you can follow step by step.
let's have @AnneBeyer work on this. The problem is there is not so much work for people starting out on scikit-learn and too many issues and tasks are long runners and complicated to see what this is about. If you are having trouble finding something to work on, you can go back on previous PRs and see if you can finish an old one that had been approved by maintainers but that had gone stale. That's not necessarily easy and will take weeks of work, but that's something you can work on without time pressure. Please just make sure not to push generated code that you don't understand yourself.
I find the matplotlib Setting up for matplotlib development nice. IMO, it seems to hit a good trade-off between conciseness vs easy to follow. More than happy to hear other opinions though, especially with the perspective of someone that is starting to contribute to scikit-learn.
One thing I would do separately is to have the OS tab level first and then conda/pip tab, but probably they did that for simplicity (conda instructions are mostly the same for all the OSes, activating the venv is different on Windows) ...
I find it very nice too. The hardest part for me about the scikit-learn contribution guide, was the part to go to some other page, and then "come back here". The linked matplotlib is great IMO, as it tells what you are actually supposed to do, from a general point of view first. Then one can see the details.
As context, the first time I contributed to OS was for scikit-learn. Back then, following the contribution guide was a huge challenge. Three years later (contributing somewhere else) everything makes sense. But I still can miss a step or have a hard time finding a specific instruction. Since I know it's there, I use search. Yet it can be still hard to find.
The matplotlib page includes options for using https or ssh for setting up the GitHub connection. Do we want that as well?
I think both would be fine, but I would tend to leave it as is. We link to the github docs on forking that explain the difference. We had discussions in the past about what should be included in the contribution guide and what not and the argument that we should be specific to scikit-learn development clicks with me.
Only https. The main reason is that we want to reduce the number of possible alternatives when possible.
We switch to https only recently, whose setup is simpler than ssh, see #32320. 1
People who have set-up SSH keys are likely more proficient with git/GitHub and will know how to tweak the command.
Footnotes
I have some vague memory than setting up the git credential helper on Linux is not as straightforward as in other OSes, but maybe it has improved since. Also people on Linux are likely proficient with git/GitHub. ↩
So the two workflows are installing for dev:
clone fork and cd scikit-learn - get OS-specific compilers - install requirements - install editable version from . installing from source:
clone main and cd scikit-learn - get OS-specific compilers - install requirements - install (not necessarily editable version) from .
@StefanieSenger mentioned that the later could maybe be replaced by pointing to the nightly builds instead.
Is there any other reason someone would want to install the package from scratch (and require more detailed instructions on how to do so), that we should document both paths explicitly? And if so, should we A) go for a copy of the workflow in install.rst in favor of the linearity? Or do we B) just link to the section on installing for dev there? Or do you have any other suggestions @lesteve@adrinjalali? (The only other files that link to installing from source are the release notes for v1.5 and v1.6)
As a general guideline, I would try to have something simple to follow for new contributors.
I would reduce the number of possibilities so only editable install. People who for some reason (I can't only think of any) want non editable installs will figure it out by themselves.
I would work first on getting a separate page that looks good, which in itself is already a bit of work, with the OS and conda/pip thing.
About how it fits in the existing doc, tricky topic: for now my current thinking that would probably need to be refined:
the contributing page only has a short text with a link to the "get your environment set-up" page (or "build from source" which is more generic, honestly I don't mind too much).
it seems like the "building from source" in the install page could point to this link?
I would move the install the nightly wheels from scientific-python-nightly-wheels somewhere else (maybe the install page? maybe somewhere else to be defined) ... this is mostly useful for:
users who want to test whether a bug is in the development version without building from source
other package maintainers who want to test against our development version (in general inside their CI)
I'm not sure we need to have separate instructions for "build from source" and "set yourself up for development". I think having only the latter is enough. There aren't that many people who can't use the nightly and for some reason need to build from source. Making them follow the "setup for dev" guide is probably fine.
Activity
dipak0000812 commentedon Oct 10, 2025
Nitin-Prata commentedon Oct 11, 2025
Ravichandranayakar commentedon Oct 11, 2025
lesteve commentedon Oct 13, 2025
dipak0000812 commentedon Oct 13, 2025
Ravichandranayakar commentedon Oct 13, 2025
lesteve commentedon Oct 13, 2025
AnneBeyer commentedon Oct 13, 2025
I'm working on this.
StefanieSenger commentedon Oct 13, 2025
Hi everyone,
let's have @AnneBeyer work on this. The problem is there is not so much work for people starting out on scikit-learn and too many issues and tasks are long runners and complicated to see what this is about. If you are having trouble finding something to work on, you can go back on previous PRs and see if you can finish an old one that had been approved by maintainers but that had gone stale. That's not necessarily easy and will take weeks of work, but that's something you can work on without time pressure. Please just make sure not to push generated code that you don't understand yourself.
lesteve commentedon Oct 13, 2025
I find the matplotlib Setting up for matplotlib development nice. IMO, it seems to hit a good trade-off between conciseness vs easy to follow. More than happy to hear other opinions though, especially with the perspective of someone that is starting to contribute to scikit-learn.
One thing I would do separately is to have the OS tab level first and then conda/pip tab, but probably they did that for simplicity (conda instructions are mostly the same for all the OSes, activating the venv is different on Windows) ...
DeaMariaLeon commentedon Oct 13, 2025
I find it very nice too. The hardest part for me about the scikit-learn contribution guide, was the part to go to some other page, and then "come back here". The linked matplotlib is great IMO, as it tells what you are actually supposed to do, from a general point of view first. Then one can see the details.
As context, the first time I contributed to OS was for scikit-learn. Back then, following the contribution guide was a huge challenge. Three years later (contributing somewhere else) everything makes sense. But I still can miss a step or have a hard time finding a specific instruction. Since I know it's there, I use search. Yet it can be still hard to find.
AnneBeyer commentedon Oct 13, 2025
The matplotlib page includes options for using
httpsorsshfor setting up the GitHub connection. Do we want that as well?StefanieSenger commentedon Oct 13, 2025
I think both would be fine, but I would tend to leave it as is. We link to the github docs on forking that explain the difference. We had discussions in the past about what should be included in the contribution guide and what not and the argument that we should be specific to scikit-learn development clicks with me.
lesteve commentedon Oct 13, 2025
Only https. The main reason is that we want to reduce the number of possible alternatives when possible.
We switch to https only recently, whose setup is simpler than ssh, see #32320. 1
People who have set-up SSH keys are likely more proficient with git/GitHub and will know how to tweak the command.
Footnotes
I have some vague memory than setting up the git credential helper on Linux is not as straightforward as in other OSes, but maybe it has improved since. Also people on Linux are likely proficient with git/GitHub. ↩
AnneBeyer commentedon Oct 13, 2025
One non-linearity I see so far is the following:
Right now, installing for development and installing the package from source (to get the latest, unstable version), link to the same section (with the instruction of starting at step 2 for the dev setup, before jumping there).
So the two workflows are
installing for dev:
clone fork and
cd scikit-learn- get OS-specific compilers - install requirements - install editable version from.installing from source:
clone main and
cd scikit-learn- get OS-specific compilers - install requirements - install (not necessarily editable version) from.@StefanieSenger mentioned that the later could maybe be replaced by pointing to the nightly builds instead.
Is there any other reason someone would want to install the package from scratch (and require more detailed instructions on how to do so), that we should document both paths explicitly? And if so, should we A) go for a copy of the workflow in
install.rstin favor of the linearity? Or do we B) just link to the section oninstalling for devthere? Or do you have any other suggestions @lesteve @adrinjalali? (The only other files that link toinstalling from sourceare the release notes for v1.5 and v1.6)lesteve commentedon Oct 13, 2025
As a general guideline, I would try to have something simple to follow for new contributors.
I would reduce the number of possibilities so only editable install. People who for some reason (I can't only think of any) want non editable installs will figure it out by themselves.
I would work first on getting a separate page that looks good, which in itself is already a bit of work, with the OS and conda/pip thing.
About how it fits in the existing doc, tricky topic: for now my current thinking that would probably need to be refined:
betatim commentedon Oct 17, 2025
I'm super excited for this!
I'm not sure we need to have separate instructions for "build from source" and "set yourself up for development". I think having only the latter is enough. There aren't that many people who can't use the nightly and for some reason need to build from source. Making them follow the "setup for dev" guide is probably fine.
I think we could replace https://scikit-learn.org/dev/developers/advanced_installation.html#building-from-source with a link to https://scikit-learn.org/dev/developers/contributing.html#how-to-contribute. WDYT?
AnneBeyer commentedon Oct 20, 2025
Thanks for the feedback @betatim!
The current idea is to