Repository navigation
MAINT add jupyter extension and pre-commit in devcontainer - #32342
Conversation
| # install ipykernel because it is handy to execute the Jupyter notebook VS Code | ||
| micromamba install ipykernel -n sklearn-dev --yes | ||
| # install pre-commit since it will avoid potential failures with the CI | ||
| micromamba install pre-commit -n sklearn-dev --yes |
There was a problem hiding this comment.
Wouldn't it be faster to install the two packages in the same command?
|
Also, maybe for a follow-up PR: it might make sense to install mamba by default to make it possible to easily create / update conda envs interactively when working from the the dev container. |
|
Regarding the devcontainers file:
Maybe it's a good thing to add a small note about the purpose of file, and also how to avoid the message? |
|
Interesting it's slightly different than what I was seeing where I had a "Don't show again" #31096 (comment). If there is a way to remove the VSCode popup by default, I am all for it but I don't think this is possible. To be honest, yes it's an annoying popup, but if you ignore it or close it, nothing bad will happen ... There are two related things:
There is a plan to add a bit more documentation i.e. it was not forgotten e.g. #32474. If you find there is a nice place in the doc, to add the "how do I remove this popup", feel free to open a PR about it 🙏! I would separate two things:
|
I thought there should be a note for developers (but in the devcontainer file itself). Plus PR32474 above doesn't mention the devcontainer file or .devcontainer folder. It only uses it, I guess. Edit:
I wonder if a beginner will know that nothing bad will happen.
Sure, once I figure out how to actually remove it. I thought I had done it, but it's there again. I edited the workspace's settings for |
|
FYI: the VSCode popup situation and how to remove it was summarized in #32516 (comment). |
…arn#32342) Co-authored-by: Loïc Estève <[email protected]>

Improve the
devcontainerby adding jupyter extension and pre-commit.ipykernelthat is handy to execute example within VS Codepre-commitis useful to avoid failures on the CI for the linter job.