Skip to content
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

Update command to pip install -e ".[test]" in the contribution documentation #12373

Merged
merged 1 commit into from
Apr 7, 2022

Conversation

jtpio
Copy link
Member

@jtpio jtpio commented Apr 7, 2022

References

Update the command to install JupyterLab in editable mode, so it also installs extra dependencies like pre-commit.

Code changes

Contributing documentation update.

User-facing changes

None

Backwards-incompatible changes

None

@jupyterlab-probot
Copy link

Thanks for making a pull request to jupyterlab!
To try out this branch on binder, follow this link: Binder

@jtpio jtpio added this to the 4.0 milestone Apr 7, 2022
Copy link
Member

@fcollonval fcollonval left a comment

Choose a reason for hiding this comment

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

Thanks @jtpio

@jtpio jtpio merged commit ffbb016 into jupyterlab:master Apr 7, 2022
@jtpio jtpio deleted the pip-install-test branch April 7, 2022 13:43
@@ -300,7 +300,7 @@ Then use the following steps:

git clone https://github.com/<your-github-username>/jupyterlab.git
cd jupyterlab
pip install -e .
pip install -e ".[test]"
Copy link
Contributor

Choose a reason for hiding this comment

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

Just FYI, this is going to mess with most Mac users (like me) since zsh became default and brackets inside double quotes have some meaning in zsh apparently. I had to run:

pip install -e '.[test]'

Copy link
Member Author

Choose a reason for hiding this comment

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

@gabalafou do you know if this is specific to Mac?

I also use zsh but on Ubuntu Linux, and brackets inside double quotes work fine.

Copy link
Contributor

Choose a reason for hiding this comment

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

Glad you asked. I think I was wrong.

I remembered it as being a double versus single quotes issue, but digging in this morning, I think it was actually an issue of quotes versus no quotes. I found a longer discussion about this issue where it looks like the conclusion is to use double quotes for maximum cross-system compatibility

Copy link
Contributor

Choose a reason for hiding this comment

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

So I think the command as you wrote it with double quotes is good and we should leave it as is. I tried it on my Mac and it worked fine

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants