-
Notifications
You must be signed in to change notification settings - Fork 905
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
Make pip
and venv
installation instructions more visible
#3281
Comments
Let's do this. I think a new page specifically about virtual environments may be the best place to do this so it doesn't clutter the get started instructions. It means it's a separate click away but then it's all self-contained. Some decent keyword optimization and we could even start ranking if we do a good job. |
Is there a way to tweak the actual installation instructions at https://docs.kedro.org/en/stable/get_started/install.html to have the |
Yes definitely. I won't be able to do that today but if you want to make a start and put a PR together, go ahead, otherwise I'll pick it up as soon as I can get to it. |
Possible text for this that's used on vizro: 8e222fe. |
@astrojuanlu , during my onboarding at McKinsey, I learned that the company recommends using |
About the internal recommendations, let's talk about those in private. About my own preference and what was included in the ISWE4DX course (you can see more about that here kedro-org/kedro-devrel#12 and also in https://github.com/kedro-org/kedro-academy/tree/main/iswe4dx/environment-dependencies), it's rooted on the fact that sometimes installing old packages on old Python versions and non-Linux architectures is easier with conda than with pip. However, this is evolving a lot, and in fact recently we've solved the last issue that was preventing me from completely ditching conda kedro-org/kedro-plugins#402 So I still think
So, with all these in mind, it's in our best interest to align ourselves with the broader Python ecosystem. |
You right, the strange part of that recommendation was: VsCode + conda env + pip, I agree that better to change conda to virtualenv. |
Description
Currently we're favouring
conda
in our installation instructions as the "recommended approach" https://docs.kedro.org/en/stable/get_started/install.htmlBut the Python packaging ecosystem is very fragmented, and conda usage for environment isolation seems to be around 22 % +- 1 % of the overall userbase:
Closer analysis reveals that conda usage is declining or stagnating around 41 % of data scientists, with 73 % reporting that they use virtualenv, Pipenv, or Poetry. From the raw data, these are the numbers I came up with:
Among non-data scientists, conda usage lies between 13 % and 15 %.
In addition, an informal survey in Slack surfaced what I've been suspecting for long: that users have a "global" Kedro, plus a project-specific Kedro. For the "global" one, users have mentioned a variety of solutions: conda, pyenv, pipx, rtx, and more https://linen-slack.kedro.org/t/16040768/u05bdslpj72-finally-gave-the-steps-in-https-kedro-org-slack-#db2c34ed-43bf-4479-839c-5a4fb4154a10
Possible Implementation
In summary, I think we should
kedro new
requires a "global Kedro"virtualenv
as the preferred/recommended solution, and mention conda in second placeCmd+F
)The text was updated successfully, but these errors were encountered: